curl is a tool to transfer data from or to a server, using one of the
supported protocols (HTTP, HTTPS, FTP, FTPS, SCP, SFTP, TFTP, DICT,
TELNET, LDAP or FILE). The command is designed to work without user
interaction.
curl http://www.example.com
curl http://www.example.com > example.html
-o/--output 把输出写到该文件中
curl http://www.example.com -o example.html
POST/GET上传数据
curl http://www.example.com -d 'uid=1&gid=1'
curl http://www.example.com?uid=1
curl 'http://www.example.com?uid=1&gid=1'
-x/--proxy <host[:port]>使用代理
curl -x proxy_host:proxy_port http://www.example.com