Created
October 3, 2015 10:42
-
-
Save krlicmuhamed/6c5f0e2d293e3bdf1f39 to your computer and use it in GitHub Desktop.
Get HTML content from the internet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what it