Skip to content

Commit

Permalink
Update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangmiao committed Apr 9, 2013
1 parent b337b6d commit 788459b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Expand Up @@ -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
--------------------

Expand Down

0 comments on commit 788459b

Please sign in to comment.