尝试使带有卷曲的卷曲变为https://transfer.sh,并且响应主体从屏幕上消失。我从终端上制作了一个gif文件:https://giphy.com/gifs/hvjZcaFbRPl9LbsBXg
我正在尝试运行此cmd,其中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)'
curl
似乎正在向终端返回回车符。尝试使用tr
剥离回车符:
curl --upload-file test https://transfer.sh | tr -d '\r'