Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update README.

  • Loading branch information...
commit 788459bc7df6b84506f8f75b67dfadae1a8761ff 1 parent b337b6d
@jiangmiao authored
Showing with 19 additions and 0 deletions.
  1. +19 −0 README.md
View
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
--------------------
Please sign in to comment.
Something went wrong with that request. Please try again.