Under Linux, curl simulates Http's get or post request

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" shows all information

curl -l "http://www.baidu.com" only displays header information

curl -v "http://www.baidu.com" shows the whole process of get request analysis

 

wget "http://www.baidu.com" also works

 

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=327038504&siteId=291194637