curl under Linux simulates Http get and post requests

1. Get request

curl "http://www.baidu.com" If the URL here points to a file or a picture, it can be downloaded directly to the local
curl -i "http://www.baidu.com" display All information
curl -l "http://www.baidu.com" only shows the header information
curl -v "http://www.baidu.com" shows the whole process analysis of the get request


2. Post request
curl -d "param1 =value1¶m2=value2" "http://www.baidu.com"

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326989262&siteId=291194637