Skip to content

Instantly share code, notes, and snippets.

@chrislaughlin
Created July 15, 2014 20:04
Show Gist options
  • Save chrislaughlin/47e4b50240543dcec56b to your computer and use it in GitHub Desktop.
Save chrislaughlin/47e4b50240543dcec56b to your computer and use it in GitHub Desktop.
Request Node
var request = require('request');
request('http://www.google.com', function (error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body) // Print the google web page.
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment