curl http://www.google.com/
curl -u user:passwd http://www.domain.com/url
curl 'http://www.google.com/?q=keyword'
简单的英文数字字符请求
curl -d "post_name=name&post_passwd=passwd" http://www.domain.com/url
自动对请求中的特殊字符及多字节字符(中文)进行URL编码
curl --data-urlencode "post_content=there is lots of space" http://www.domain.com/url
curl --basic -u user:passwd someurl
curl --B -u user:passwd someurl
curl --header "Content-Type:application/x-www-form-urlencoded" http://www.domain.com/url
curl -H "Host:www.google.com.hk" http://173.194.37.104/
curl --user-agent "Chrome" http://www.domain.com/url
curl -I http://www.gooogle.com/
curl --resolve "dl.google.com:443:203.208.48.66" https://dl.google.com/update2/installers/ChromeStandaloneSetup.exe
curl -u "user:passwd" --data-urlencode "status=A message with curl via fanfou api" http://api.fanfou.com/statuses/update.xml
curl -u "user:passwd" -d "status=A%20message%20with%20curl%20via%20fanfou%20api." http://api.fanfou.com/statuses/update.xml