HTTPS requests

Posted on
Page
of 2
Prev
/ 2
  • It is true, yes - I do have Patreon support from non-Espruino board owners (although most supporters do appear to have Espruino boards). I really like the idea of http2https especially for testing, but I'd say it's a bit dodgy for anything remotely production-worthy.

    I'm looking seriously at the idea of creating a proper web service that could provide a secure connection to ESP8266 and other boards - for the IDE as well as data. If I can be sure of the HTTPS server being connected to I can restrict packet sizes and can reduce the memory needed for the TLS implementation a huge amount.

    However I'm still unsure if enough people would pay for it to make it worthwhile. I guess an obvious solution would be to come up with another KickStarter campaign and see if enough people were willing to commit to a year's worth of service.

    But I'm totally sidetracking this thread - so if there's interest we should discuss it elsewhere.

  • @Gordon Alas, I don't. I run it from a server machine at home, I never really set-up logging, I just checked through the logs I do have but because of the way I have it setup I couldn't determine what was for the HttpToHttps service, I don't imagine it was a whole lot though.

    What I imagine I'll do is continue the service, but under a subdomain of my personal domain which I plan to keep for the foreseeable future as I don't want to renew the xyz domain, as my graphics card just died. Isn't student life fun xD. The new domain will be something like "HTH.MrTimcakes.com" or "HttpToHttps.MrTimcakes.com" once I get round to moving it.

  • Yes, that sounds like a good plan - just as easy to use, and at least it's not costing you anything :) I guess you could stick something on HttpToHttps.com asking if anyone uses it, so you see what the level of interest is?

    Very cool that it's all being served off a local machine though - I never trusted my connection enough to do anything like that :)

  • httptohttps is now live again at HttpToHttps.MrTimcakes.com

  • Thanks!

  • I want to make a PUT HTTPS request with the Espruino WiFi module. How can I do this? Require("https") is not recognised. Can someone give me an example code?

  • Sorry for the delay - you should be able to do it just by putting https in the URL for a normal http library call:

    require("http").get("https://www.google.com", function(res) {
      res.on('data', function(data) { /* ... */ });
    });
    

    from https://www.espruino.com/Internet#https

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

HTTPS requests

Posted by Avatar for AlessioBacin @AlessioBacin

Actions