You are reading a single comment by @Crash and its replies. Click here to read the full conversation.
  • Hi.

    Yes. I already made some requests with postman. http and https work in postman without any issues on the same endpoint.

    Why there is a problem with http on esp8266?

    Edit:

    >var request = http.get(
    :encodeURIComponent("http://api.thecatapi.com/v1/images/search?size=full"),
    :(response) => {
    :console.log(response);
    :response.on('data', (data) => {console.log(data);})
    :});
    :request.on('error', (err) => {console.log(err)});
    =undefined
    { "code": -6,
      "message": "not found"
     }
    

    Now I'm sure that is isn't an issue with telegram bot.

    Edit2:

    var http = require("http");
    http.get("http://www.espruino.com", function(res) {
      res.on('data', function(data) {
        console.log(data);
      });
    });
    

    This works fine. I got the whole html page...

About

Avatar for Crash @Crash started