ESP32 HTTP POST Fails When using a Long Header Message

jayfisher
Posts: 1
Joined: Wed Jan 06, 2021 8:48 pm

ESP32 HTTP POST Fails When using a Long Header Message

Postby jayfisher » Wed Jan 06, 2021 8:53 pm

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!

ESP_Minatel
Posts: 364
Joined: Mon Jan 04, 2021 2:06 pm

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

Postby ESP_Minatel » Thu Jan 07, 2021 10:46 am

Hi,

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

Code: Select all

#define DEFAULT_HTTP_BUF_SIZE (512)

Who is online

Users browsing this forum: No registered users and 59 guests