You are reading a single comment by @aerialist_user6911 and its replies. Click here to read the full conversation.
  • Could Espruino handle HTTPS...?

    All twitter REST API resource URL are HTTPS, not HTTP...
    And I've got this error code returned. Yeah, sure. I called require("http").get() function with a URL starting with "https://"...

    Response:  {
      "headers": {
        "content-length": "52",
        "content-type": "application/json;charset=utf-8",
        "date": "Sun, 14 Jun 2015 13:38:10 GMT",
        "server": "tsa_a",
        "set-cookie": "guest_id=v1%3A143428919094643089; Domain=.twitter.com; Path=/; Expires=Tue, 13-Jun-2017 13:38:10 UTC",
        "x-connection-hash": "3e91ae650c8rfb6894d0fc7183fae787",
        "x-response-time": "8"
       },
      "httpVersion": "1.0",
      "statusCode": "403",
      "statusMessage": "Forbidden"
     }
    --->{"errors":[{"message":"SSL is required","code":92}]}
    > 
    

    Oh, these HTTPS and OAuth security things are so tough for micro controllers! We need a good solution to make IoT inexpensive!

About