Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By majubs
#91252 Hello,

I have a question about the error from ESP8266HTTPClient library

Code: Select all#define HTTPC_ERROR_SEND_HEADER_FAILED  (-2)


I want to understand better what causes it, since I occasionally get this error in my ESP8266 application.

I could track as far as Stream.h. There it happens when the number of bytes sent to the WiFi Client stream is smaller then the size of the header, but what could cause that? Is it something in the device, for instance the WiFi Client disconnecting? Or is it in the network, after sending it?

Any insight is appreciated :)