curl Expect: 100-continue报错

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_31489933/article/details/80319635

Linux下使用curl上传文件报错: Expect: 100-continue

上传命令:

curl -F content=@mod_encoding_64.tar.gz  -F container_path=aaa/b -F object_name=mod_encoding_64.tar.gz -H "token: 3589c19b41a2434b9965d1578774be10" -H "url: http://ip:6780/swift/v1" -X POST  http://ip:5000/swift/api/v1.0/object/upload

详细错误信息:

解决方法:

增加 -H "Expect: "

curl -F content=@mod_encoding_64.tar.gz  -F container_path=aaa/b -F object_name=mod_encoding_64.tar.gz -H "token: 3589c19b41a2434b9965d1578774be10" -H "url: http://ip:6780/swift/v1" -H "Expect: " -X POST  http://ip:5000/swift/api/v1.0/object/upload


参看资料:

https://stackoverflow.com/questions/6244578/curl-post-file-behind-a-proxy-returns-error

https://blog.csdn.net/u013474436/article/details/54928215

阅读更多

扫码向博主提问

YURNERO_0522

师者,传道授业解惑也!
  • 擅长领域:
  • Linux
  • Python
  • 自动化运维
  • Oracle
  • Django
去开通我的Chat快问
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页