Update README.

This commit is contained in:
Miao Jiang 2013-04-10 03:22:32 +08:00
parent b337b6d4fb
commit 788459bc7d

View file

@ -105,6 +105,25 @@ Infos
slist will be returns in Array
eg: CURLINFO_COOKIELIST
MultiPart Upload
----------------
Use MULTIPART option
There are 4 options in MULTIPART, `name`, `file`, `type`, `contents`
```javascript
curl('127.0.0.1/upload.php', {
MULTIPART: [
{name: 'file', file: '/file/path', type: 'text/html'},
{name: 'sumbit', contents: 'send'}
]
}, function(e) {
console.log(e);
console.log(this.body);
this.close()
});
```
Low Level Curl Usage
--------------------