-
Notifications
You must be signed in to change notification settings - Fork 20
Content-Length in POST request not filled #3
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
I tested airrohr firmware which using HTTPClient like new nettigo firmware, and it's working with my API, so there is something wrong with new source. |
It's simple. Basic auth isn't working yet. |
Ok, I will try today. |
@irukard I'm not sure if this really BasicAuth issue. It works for me with Influx (so it is not a custom API though), in attached traffic auth headers seems to be exact the same. API responds with 411 not 401, so auth is working. |
@pkozak2 I have added Content-Length header when sending. As I thought it was lost when converting code.Try with new FW (2020-24). If it won't work for You reopen issue. |
As Ikurad says, authorization header not working for now. #4 fixes this issue. |
My custom API (.NET Core) returns 411 HTTP Error.
I found that the Content-Length is not filled in request headers.
Current BETA NAMF-2020-23

Stable version - NAMF-2019-020:

Additionaly I found that used Library probably want to fill Content-Length:
https://github.com./esp8266/Arduino/blob/372a3ec297dfe8501bed1ec4552244695b5e8ced/libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.cpp#L673
But, not only I have this issue with this library:
esp8266/Arduino#2678
The text was updated successfully, but these errors were encountered: