You are reading a single comment by @opichals and its replies. Click here to read the full conversation.
  • I tried the getPage() and it did work for me when the URL is correct. Cutting & pasting from the forum's example however mangled the URL for me so I got a 'Not found' error.

    @J{a}SON could you try this and post the whole console result?

    require("http").get("http://www.pur3.co.­uk/hello.txt", function(res) {
      console.log("Response: ",res);
      res.on('data', function(d) {
        console.log("--->"+d);
      });
    }).on('error', function(err) {
      console.log('ERROR', err);
    });
    
About

Avatar for opichals @opichals started