Advertisement
hackerboxes

node send post data

Aug 18th, 2013
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. var request = require('request');
  2.  
  3. request.post(
  4. 'http://192.168.1.46:1337/',
  5. { form: { 'name':'a','pwd':'1' } },
  6. function (error, response, body) {
  7. if (!error && response.statusCode == 200) {
  8. console.log(body)
  9. }
  10. }
  11. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement