HTTPS (SSL) get request with NodeMCU
<p>I would like to perform GET requests to googleapi.com with my ESP8266 running NodeMCU, to get some data from the google Calendar API. The website allows only secured connection (HTTPS/SSL).</p>

<p>First, I've been trying to connect to google.com (secured) to give it a try, but with no success either. Here is the LUA code:</p>

<pre><code>conn=net.createConnection(net.TCP, 1)
conn:on("receive", function(sck, c) print(c) end )
conn:on("connection", function(conn)
      print("connected")
      conn:send("HEAD / HTTP/1.1\r\n".. 
             "Host: google.com\r\n"..
             "Accept: */*\r\n"..
             "User-Agent: Mozilla/4.0 (compatible; esp8266 Lua;)"..
             "\r\n\r\n") 
end )
conn:on("disconnection", function(conn)  print("disconnected") end )
conn:connect(443,"google.com")
</code></pre>

<p>Nothing is triggered (not even the "connected").</p>

<p>I also downloaded the <em>latest</em> version of nodemcu (master branch) from the website <a href="http://nodemcu-build.com" rel="nofollow">http://nodemcu-build.com</a> by selecting the SSL support.</p>

<pre><code>NodeMCU custom build by frightanic.com
    branch: master
    commit: c8037568571edb5c568c2f8231e4f8ce0683b883
    SSL: true
</code></pre>

<p>Could someone tell me what I am doing wrong? Someone reported the problem on <a href="https://www.reddit.com/r/esp8266/comments/2zt58x/does_ssl_work/" rel="nofollow">Reddit</a>, but no final solution given.</p>