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"