Skip to content

Instantly share code, notes, and snippets.

Created March 9, 2013 00:56
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 anonymous/5121856 to your computer and use it in GitHub Desktop.
Save anonymous/5121856 to your computer and use it in GitHub Desktop.
var http = require('http');
http.createServer(function(req, res){
//res.end();
this.close();
}).listen(8080);
http.request({host: 'localhost', port: 8080}, function(resp) {
}).end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment