Skip to content

Commit

Permalink
Bumped version. Updated readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexindigo committed Jan 8, 2013
1 parent de3502f commit 4581140
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Readme.md
Expand Up @@ -102,4 +102,17 @@ form.submit('http://example.com/', function(err, res) {
});
```

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:

``` javascript
form.submit({
host: 'example.com',
path: '/probably.php?extra=params',
auth: 'username:password'
}, function(err, res) {
console.log(res.statusCode);
});
```


[xhr2-fd]: http://dev.w3.org/2006/webapi/XMLHttpRequest-2/Overview.html#the-formdata-interface
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"author": "Felix Geisendörfer <felix@debuggable.com> (http://debuggable.com/)",
"name": "form-data",
"description": "A module to create readable `\"multipart/form-data\"` streams. Can be used to submit forms and file uploads to other web applications.",
"version": "0.0.5",
"version": "0.0.6",
"repository": {
"type": "git",
"url": "git://github.com/felixge/node-form-data.git"
Expand Down

0 comments on commit 4581140

Please sign in to comment.