Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bumped version. Updated readme.

  • Loading branch information...
commit 4581140f322758c6fc92019d342c7d7d6c94af5c 1 parent de3502f
@alexindigo alexindigo authored
Showing with 14 additions and 1 deletion.
  1. +13 −0 Readme.md
  2. +1 −1  package.json
View
13 Readme.md
@@ -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
View
2  package.json
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.