Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By gbafamily1
#66542 The server certificate changed so the SHA1 hash must be updated. I changed the hash in my original post.

3D:F0:DB:04:C2:11:B4:3E:8F:E4:CA:EB:25:5A:5D:D0:96:B0:39:8C

Code: Select all[HTTPS] begin...
[HTTPS] POST...
[HTTPS] POST... code: 200
Successfully dumped 2 post variables.
View it at http://www.posttestserver.com/data/2017/05/30/22.10.021692059311
No Post body.
User avatar
By SwiftyAlex
#90091 After many trials and errors with different HTTP POST code I finally found one that works. Thank you very much for this. I'm writing this reply so it can be found easier when searched for.

* It is important to change the cert SHA1 fingerprint. This can be found in the websites SSL. (The small lock on the left of the URL) *

For anyone like me who wants to POST 2 or more variables to a PHP webpage, this is the perfect code. It also works if your webpage is on run on Microsoft Azure.


Thank you once again for this wonderfull code!!

Keywords: Microsoft Azure ESP8266 HTTP POST 2 TWO VARIABLES -1 RESPONSE RETURN ARDUINO CONNECT WIFI