Page 1 of 1

ESP32 HTTP POST Fails When using a Long Header Message

Posted: Wed Jan 06, 2021 8:53 pm
by jayfisher
Hey everyone, I was wondering if there is a way to change the max header length for the esp_http_client library. I need to upload an auth token with 1000 characters and any header above a few hundred characters is giving me issues. I have plenty of memory available (around 100KB). Thanks in advance for the help!

Re: ESP32 HTTP POST Fails When using a Long Header Message

Posted: Thu Jan 07, 2021 10:46 am
by ESP_Minatel
Hi,

You can try changing the buffer size on the esp_http_client.h file:

Code: Select all

#define DEFAULT_HTTP_BUF_SIZE (512)