So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By PeteKnight
#70935
martinayotte wrote:HTTPS vs HTTP !!!
You need either to allow plain HTTP in your Web Hosting instead of HTTPS, or doing some change to ESP8266HTTPClient/ESP8266httpUpdate classes to allow HTTPS connections. The former is probably the easiest way ...

Exactly. I only use HTTP.

Pete.
User avatar
By SuperNinja
#71020
PeteKnight wrote:
martinayotte wrote:HTTPS vs HTTP !!!
You need either to allow plain HTTP in your Web Hosting instead of HTTPS, or doing some change to ESP8266HTTPClient/ESP8266httpUpdate classes to allow HTTPS connections. The former is probably the easiest way ...

Exactly. I only use HTTP.

Pete.

Thanks PeteKnight & martinayotte
I note to use http , but why in the httpUpdate example code we can chose http or https ? :
Code: Select all t_httpUpdate_return ret = ESPhttpUpdate.update("http://server/file.bin");
        //t_httpUpdate_return  ret = ESPhttpUpdate.update("https://server/file.bin");


if i change https to http i got this error :
Code: Select all[SETUP] WAIT 4...
[SETUP] WAIT 3...
[SETUP] WAIT 2...
[SETUP] WAIT 1...
HTTP_UPDATE_FAILD Error (-104): Wrong HTTP code


000webhost.com is under https so how use it with http or transform to http ?
User avatar
By martinayotte
#71021
SuperNinja wrote:I note to use http , but why in the httpUpdate example code we can chose http or https ? :

Nope ! This line commented out is there since initial commit in Nov 2015, but probably left here unintentionally, probably Links2004 was doing a test, but he forgot to remove this line before his commit.