Advertisement
Guest User

Untitled

a guest
Feb 27th, 2019
5
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. var request = require("request")
  2.  
  3. var url = "http://wrm.lau.lv/"
  4.  
  5. request({
  6. url: url,
  7. json: true
  8. }, function (error, response, body) {
  9.  
  10. if (!error && response.statusCode === 200) {
  11. console.log(body) // Print the json response
  12. }
  13. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement