arduino-libraries / ArduinoHttpClient

Arduino HTTP Client library
282 stars 170 forks source link

Server returns http 400 when connected to SSID with password #53

Closed jbrepogmailcom closed 5 years ago

jbrepogmailcom commented 5 years ago

Hello, I have noticed following strange behavior.

I have multiple SSIDs provided by my home ZYXEL router, some with password, some without it. I use WiFiManager.h to autoconnect to SSID. When it does not detect connection, it launches captive portal, where I can select some of my SSID, enter password and ESP then connects to that SSID.

Then I use OTA from web server, with ESP8266HTTPClient.h and ESP8266httpUpdate.h. I noticed that when I am connected to SSID with password, I can not connect to OTA server and it returns http code 400. When I reconnect to other SSID without password, then OTA server returns http code 200 and server the update file.

Jan

sandeepmistry commented 5 years ago

Hi @jbrepogmailcom,

ESP8266HTTPClient.h and ESP8266httpUpdate.h are not included in this repository. Please make sure you've opened the issue in the right Github repo/project.