Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var request = require('request');
- d=0;
- console.log("here");
- request('http://www.google.com', function (error, response, body) {
- console.log('error:', error); // Print the error if one occurred
- console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
- console.log('body:', body); // Print the HTML for the Google homepage.
- d=1;
- });
- console.log("now here");
- while(d==0){}
- console.log("did it!");
Add Comment
Please, Sign In to add comment