http-post
http-post copied to clipboard
This utility extends the functionality of the 'http' library in stock node.js. It returns a post request function in a very similar way to node's http.get(). It supports both normal urlencoded payload...
Hello, the NPM README/docs has an invalid example code https://www.npmjs.com/package/http-post#examples ``` http.post('http://localhost/postscript.php', { name: 'Sam', email: '[email protected]' }, function(res){ response.setEncoding('utf8'); res.on('data', function(chunk) { console.log(chunk); }); }); ``` `response.setEncoding('utf8');` should be...
It would be nice to be able to send the `Content-Type` header with each file, even though I've yet to test this with a server that rejects the request or...
Pls provide an example to post a file as welll as data using the http-post module. Thanks,
I tryed ``` var req = http.post(options, authParams, {param: 'file', path: '/tmp/test.zip'}, reqCallback); ``` On server, I can see that the request itself is working, but the file is not...
I want to create a web crawler with this module, it seams that it does not support cookies.?
I need to get some tests up for this... eventually it will happen
The current implementation loads the entire file into memory and tosses it to `req.write()` at once. This will fail for larger files. Some sort of buffered read to `req.write()` needs...