Skip to content

Instantly share code, notes, and snippets.

@krlicmuhamed
Created October 3, 2015 10:42
Show Gist options
  • Save krlicmuhamed/6c5f0e2d293e3bdf1f39 to your computer and use it in GitHub Desktop.
Save krlicmuhamed/6c5f0e2d293e3bdf1f39 to your computer and use it in GitHub Desktop.
Get HTML content from the internet
var s = require('net').Socket();
s.connect(80, 'google.com');
s.write('GET http://www.google.com/ HTTP/1.1\n\n');
s.on('data', function(d){
console.log(d.toString());
});
s.end();
@girs1982
Copy link

girs1982 commented Oct 3, 2015

what it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment