我需要从命令行通过Curl发出POST请求.此请求的数据位于文件中.我知道通过PUT可以通过--upload-file选项完成.
--upload-file
curl host:port/post-file -H "Content-Type: text/xml" --data "contents_of_file"
curl http http-post command-line-interface
command-line-interface ×1
curl ×1
http ×1
http-post ×1