- Fri Oct 20, 2017 9:56 am
#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 ?