Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. request("https://www.futbin.com" + "/17/player/3", function(error, response, full) {
  2. console.log(full);
  3. });
  4.  
  5. var https = require('https');
  6.  
  7. var options = {
  8. host: 'www.futbin.com',
  9. path: '/17/player/3',
  10. };
  11.  
  12. callback = function(response) {
  13. var str = ''
  14. response.on('data', function (chunk) {
  15. str += chunk;
  16. });
  17.  
  18. response.on('end', function () {
  19. console.log(str);
  20. });
  21. }
  22.  
  23. var req = https.request(options, callback);
  24. req.end();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement