Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. var request = require('request');
  2. console.log("Before requests");
  3.  
  4. // getUrl is the the url and returns the data when entered into my browser
  5. request(getUrl, function (error, response, body) {
  6. console.log('error:', error);
  7. console.log('statusCode:', response && response.statusCode);
  8. console.log('body:', body);
  9. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement