Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis
Created November 21, 2010 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bnoordhuis/709310 to your computer and use it in GitHub Desktop.
Save bnoordhuis/709310 to your computer and use it in GitHub Desktop.
request.js
http = require('http');
client = http.createClient(80, 'www.google.com');
req = client.request('POST', '/', {'Content-Type':'application/x-www-form-urlencoded'});
req.on('response', console.log);
req.end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment