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...
@Crash started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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:
Now I'm sure that is isn't an issue with telegram bot.
Edit2:
This works fine. I got the whole html page...