Any news on nextgen Espruino WiFi ?

Posted on
Page
of 2
Prev
/ 2
  • Thanks MaBe,

    Thank you for checking! Now I understand the reason. I think most sites no longer support TLS 1.0/1.1 and TLS 1.2 will be deprecated soon. Unfortunately, the ESP8266 cannot be used for this purpose. An ugly solution. but useful is the http_to_https proxy.

  • this was the solution I use long time ago for testing.

    https://github.com/MrTimcakes/HttpToHttp­s

  • Thank you very much MaBe!

  • @MaBe, how do you make requests through a proxy server from espruino?

  • My REST API example:

    var options = {
      protocol: "http:",
      method: 'POST',
      host: 'XXXX.XXXX.XXXX.XXXX',  // Proxy IP
      path: 'https://endpoint.com/', // Landing URL
      port: 8888,
      pathname: "restpath",
      search: null,
      query: null,
      headers: { "Content-Type": "application/json", "Content-Length": content.length }
    };
    
    var req = require("http").request(options, function (res) {
      var d = "";
      res.on('data', function (data) { if (d.length < 8) d += data; });
      res.on('close', function (data) { callback(); });
    });
    req.on('error', function (e) {
      callback();
    });
    req.end(content);
      } catch (f) {
    }
    
  • btw, I had problems with simple proxy, but the Squid proxy works very well

  • Thanks for sharing @Geza - Yes, this is the way you use those proxy

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Any news on nextgen Espruino WiFi ?

Posted by Avatar for Serge(user142380) @Serge(user142380)

Actions