-->
Page 1 of 1

ESP8266HTTPClient send header failed cause

PostPosted: Wed Apr 28, 2021 5:18 pm
by majubs
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 :)