---
title: "curl用法"
author: "chuqingq"
date: "2014-11-14T15:24:26Z"
tags: []
categories: ["开源软件"]
slug: "curl"
draft: false
lastmod: "2015-01-23T11:05:42Z"
id: 2156044
url: "https://chuqq.iteye.com/blog/2156044"
---

curl使用方法：  
    -o &lt;filename&gt; = -O  
    -x &lt;proxyip:port&gt;  
    -b &lt;incookiefile&gt; -D &lt;outcookiefile&gt;  
    -A &lt;useragentinfo&gt; 例如"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"  
    -e &lt;referer&gt; 例如 "mail.yahoo.com"  
    curl -o #2\_#1.jpg [http://cgi2.tky.3web.ne.jp/~/\[001-201\].JPG](http://cgi2.tky.3web.ne.jp/~/%5B001-201%5D.JPG)  
    -c断点续传  
    -r 0-10240 分块下载  
    -d "user=nickwolfe&password=12345" POST请求  
    -F/--form &lt;name=content&gt; 上传文件/提交表单