It seems that the callback of require("http").request is not executed. When using require("http").get then the callback is executed. I use the Pico with 1v78. Originally I wanted to make a post request but never got a response so I tried to reproduce it with the get command.
Remark: It looks like the forum engine injects a http:// in front of the host name.
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.
It seems that the callback of
require("http").request
is not executed. When usingrequire("http").get
then the callback is executed. I use the Pico with 1v78. Originally I wanted to make a post request but never got a response so I tried to reproduce it with the get command.Remark: It looks like the forum engine injects a
http://
in front of the host name.Callback is executed for:
Callback (print status code) is not executed for:
Does somebody know how to solve this?