title: How to use HTTPS post request in NodeMCU HTTP module
body: <p>I am using following code with HTTP module of the NodeMCU firmware. As per the documentation both HTTP and HTTPS URLs should work. </p>
  
  <p><a href="https://nodemcu.readthedocs.io/en/master/en/modules/http/#httppost" rel="nofollow noreferrer">https://nodemcu.readthedocs.io/en/master/en/modules/http/#httppost</a></p>
  
  <p>Though I am getting error when I use 'https'. 'http' is working fine for me. For URL in code, I am facing following error.</p>
  
  <p>"The plain http request was sent for HTTPS port". </p>
  
  <p>Please help.</p>
  
  <pre><code>http.post('https://maker.ifttt.com/trigger/......',
          'Content-Type: application/json\r\n',
          '{"value1":"mainlobby"}', function(code, data)
          if (code &lt; 0) then
              print("HTTP request failed")
          else
          print(code, data)
          end        
    end
  </code></pre>