ESP8266HTTPClient send header failed cause
Posted: Wed Apr 28, 2021 5:18 pm
Hello,
I have a question about the error from ESP8266HTTPClient library
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
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