我尝试用curl访问https://transfer.sh,但响应正文消失了。 我从我的终端制作了一个gif:https://giphy.com/gifs/hvjZcaFbRPl9LbsBXg
我正在尝试运行以下命令,其中test是一个文本文件:
curl --upload-file test https://transfer.sh
为了解决问题,我使用了一个内联的Python脚本,效果非常好:
python -c 'import requests; print(requests.post("https://transfer.sh/", files={"upload_file": open("test","rb")}).text)'