相关疑难解决方法(0)

通过Curl发送带有在File中指定的数据的POST请求

我需要从命令行通过Curl发出POST请求.此请求的数据位于文件中.我知道通过PUT可以通过--upload-file选项完成.

curl host:port/post-file -H "Content-Type: text/xml" --data "contents_of_file"
Run Code Online (Sandbox Code Playgroud)

curl http http-post command-line-interface

203
推荐指数
5
解决办法
25万
查看次数

标签 统计

command-line-interface ×1

curl ×1

http ×1

http-post ×1