1. 下载
curl URL
curl URL -o file.txt //把下载的内容输出到file.txt文件
2. 断点续传
curl -C -URL
3. http post提交数据
curl --data "voice_status=url_encode_json" URL
可以在服务器上$_POST['voice_status']接收到数据
4. http get
curl -i URL
URL带多个参数时,需要&需要加反斜杠\
参考:http://man.linuxde.net/curl