-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Unable to use http.setAuthorization for ESPhttpUpdate #3812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@pjunni if I understand the request correctly, what you want to do is update from a webserver that requires user/pass. Is that correct? |
@devyte That's correct. |
@devyte Would you have any suggestions on this matter? |
I face the similar issue,could someone please let us know how to add http authorization headers for ESPHttpUpdate? |
Facing same issue. How to do OTA from https server having authorisation with username/password. |
Was this ever solved, I have the same issue? |
If you are still interested, would you give it a try this PR? #7190 |
Fixed via the mentioned PR (#7190). Closing. |
I did not find a way to use http.setAuthorization for ESPhttpUpdate, but I solved the issue by adding the line http.setAuthorization("username","password"); on line 181 in https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.cpp. Is there a more "correct" way to do this or could there be an overloaded handleUpdate function that takes these "username" and "password" and pass them into http.setAuthorization("username","password");?
The text was updated successfully, but these errors were encountered: