Update README.
This commit is contained in:
parent
b337b6d4fb
commit
788459bc7d
1 changed files with 19 additions and 0 deletions
19
README.md
19
README.md
|
@ -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
|
||||
--------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue