Skip to content

Commit 4581140

Browse files
committed
Bumped version. Updated readme.
1 parent de3502f commit 4581140

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

Readme.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,17 @@ form.submit('http://example.com/', function(err, res) {
102102
});
103103
```
104104

105+
For edge cases, like POST request to URL with query string or to pass HTTP auth creadentials, object can be passed to `form.submit()` as first parameter:
106+
107+
``` javascript
108+
form.submit({
109+
host: 'example.com',
110+
path: '/probably.php?extra=params',
111+
auth: 'username:password'
112+
}, function(err, res) {
113+
console.log(res.statusCode);
114+
});
115+
```
116+
117+
105118
[xhr2-fd]: http://dev.w3.org/2006/webapi/XMLHttpRequest-2/Overview.html#the-formdata-interface

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Felix Geisendörfer <[email protected]> (http://debuggable.com/)",
33
"name": "form-data",
44
"description": "A module to create readable `\"multipart/form-data\"` streams. Can be used to submit forms and file uploads to other web applications.",
5-
"version": "0.0.5",
5+
"version": "0.0.6",
66
"repository": {
77
"type": "git",
88
"url": "git://github.com/felixge/node-form-data.git"

0 commit comments

Comments
 (0)