curl-v https://www.gaojs.com.cn 2、post请求 代码语言:javascript 复制 # post请求 curl-X-POSThttps://www.gaojs.com.cn # 也可以这样写 curl-XPOSThttps://www.gaojs.com.cn # 带着data发送post请求 curl-XPOSThttps://www.gaojs.com.cn-d{"gaojs":"testops"} 3、put请求 代码语言:javascrip...
forFTPlogin,clearfortransfer-G, --get Put the post datainthe URL and use GET-g, --globoff Disable URL sequences and ranges using {} and []--happy-eyeballs-timeout-ms <milliseconds> HowlongtowaitinmillisecondsforIPv6 before trying IPv4--haproxy-protocol Send HAProxy PROXY protocol v1 h...
--data-ascii <data>以ascii的⽅式post数据 --data-binary <data>以⼆进制的⽅式post数据 --negotiate使⽤HTTP⾝份验证 --digest使⽤数字⾝份验证 --disable-eprt禁⽌使⽤EPRT或LPRT --disable-epsv禁⽌使⽤EPSV -D/---header <file>把header信息写⼊到该⽂件中 --egd-file <...
ConvertLFtoCRLFinupload--crlfileFILEGet aCRLlistinPEMformat from the given file-d,--dataDATAHTTPPOSTdata(H)HTTPPOST方式传送数据--data-rawDATAHTTPPOSTdata,'@'allowed(H)--data-asciiDATAHTTPPOSTASCIIdata(H)--data-binaryDATAHTTPPOSTbinarydata(H)--data-urlencodeDATAHTTPPOSTdata urlencoded(H)--d...
--data-raw <data> HTTP POST data,'@'allowed --data-urlencode <data> HTTP POST data url encoded --delegation <LEVEL> GSS-API delegation permission --digest Use HTTP Digest Authentication -q, --disableDisable .curlrc --disable-eprt Inhibit using EPRT or LPRT ...
data (SSL) --engine ENGINGE Crypto engine (SSL). "--engine list" for list -f, --fail Fail silently (no output at all) on HTTP errors (H) -F, --form CONTENT Specify HTTP multipart POST data (H) --form-string STRING Specify HTTP multipart POST data (H) --ftp-account DATA ...
POST请求 -X指定请求,-d添加数据 -X -d <data> 表单 curl -X POST -d "blog=lady_killer&name=9" http://httpbin.org/post 可以看到添加了curl相比GET又添加了两个请求头Content-Length和Content-Type json 在学http协议的时候,我们学习了http的很多头部,其中Content-Type头部指定了类型,postman能够发送很多...
--data-ascii <data> 以ascii的方式post数据 --data-binary <data> 以二进制的方式post数据 --negotiate 使用HTTP身份验证 --digest 使用--disable-eprt 禁止使用EPRT或LPRT --disable-epsv 禁止使用EPSV --egd-file <file> 为随机数据(SSL)设置EGD socket路径 ...
-I Show document info only 只展示headers,发起HEAD请求 -o Write output to file instead of stdout 保存到本地 -x 用这个option可以指定http访问所使用的proxy服务器及其端口 -v Make the operation more talkative 可以显示一次http通信的整个过程,包括端口连接和http -H Custom header to pass to server 添加...
POST|PUT|DELETE|…] 使用指定的 http method 例如 -X POST -H, --header 设定 request里的header 例如 -H "Content-Type: application/json" -e, --referer 设定 referer (H) -d, --data <data> 设定 http body 默认使用 content-type application/x-www-form-urlencoded (H) --data-raw <data...