【发布时间】:2015-01-16 03:23:42
【问题描述】:
是否可以使用 URL 中的内容进行 Curl -data-binary POST?
POST 文件中的内容:
curl -X POST -H "Content-Type: plain/text" --data-binary "@file.txt" http://somewhere.com
有没有 curl 命令可以做类似的事情
curl -X POST -H "Content-Type: plain/text" --data-binary "http://somefile.com/file" "http://somewhere.com"
假设http://somefile.com/file是一个二进制文本文件
【问题讨论】: