Linux命令: curl

Reading time ~1 minute

curl作为最常用的HTTP client模拟工具,基本的用法还是要了解的。

HTTP POST

-d 需要Post的数据,或通过@引用本地文件 -H 更改请求头,如果Headers有多行,可以添加多个-H -b 添加cookie,字符串或文件,如果有多个cookie以分号分隔

1
2
3
4
5
curl -v -d @text.xml -H "Content-Type: text/xml;charset=UTF-8;" 127.0.0.1:5000

curl -v -d 'mailNum=EA038500686NL&checkCode=981937' -b 'JSESSIONID=C7LZWGGccR1h9lQChCGnVKPV9R01qFwfnQhpvRGNVpDsysx2pJ4F!-554346888; path=/; HttpOnly; BIGipServerweb_pool=168493834.40735.0000; path=/;' http://www.ems.com.cn/ems/order/singleQuery_t


HTTP GET

1
2
3
curl -v "http://127.0.0.1:5000/?signature=bafb00117d9775162f1084df40f39bfc23b6d61c&echostr=1159902683469627124&timestamp=1446156884&nonce=331675590"

curl -v http://www.ems.com.cn/ems/order/singleQuery_old?mailNum=EA038500686NL&checkCode=3977649360132055014

AZ-204: Practice topic 5

1. inboundOutboundBackend2. C### [Page 25](https://www.examtopics.com/exams/microsoft/az-204/view/25/)25. 26. 27. 28. 29. ### [Page 26](h...… Continue reading

AZ-204: Practice topic 4

Published on February 20, 2022

AZ-204: Practice topic 3

Published on February 07, 2022