ESP32 HTTP POST Fails When using a Long Header Message
ESP32 HTTP POST Fails When using a Long Header Message
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!
-
- Posts: 364
- Joined: Mon Jan 04, 2021 2:06 pm
Re: ESP32 HTTP POST Fails When using a Long Header Message
Hi,
You can try changing the buffer size on the esp_http_client.h file:
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: Google [Bot] and 77 guests