Header fields are too long for server to interpret

Patsjemoe
Posts: 40
Joined: Wed Jul 17, 2019 11:22 am

Header fields are too long for server to interpret

Postby Patsjemoe » Wed Jul 06, 2022 6:57 am

Hi,
I have seen a lot of communication on this error, but did not find a solution.
To avoid the error, I used Firefox on PC and android, but as I want to use Web view in android studio now, I am again facing the same error, which surprised me, as this problem seems already soo old.
In arduino, I already changed httpd_max...., but it did not solve anything.
Is there an IDF version with a solution ?
Will there be a solution in arduino ?
Thanks in advance
Regards
Ludo

ccrause
Posts: 15
Joined: Wed Feb 27, 2019 7:42 am

Re: Header fields are too long for server to interpret

Postby ccrause » Thu Jul 07, 2022 10:10 am

The main issue appears to be that Arduino does not rebuild esp-idf if the configuration is changed. Thus you have two options: either rebuild esp-idf with the appropriate settings and replace the relevant prebuild arduino-eps32 libraries (see this discussion), or get the latest arduino-esp32 release (CONFIG_HTTPD_MAX_REQ_HDR_LEN was bumped to 1024).

Patsjemoe
Posts: 40
Joined: Wed Jul 17, 2019 11:22 am

Re: Header fields are too long for server to interpret

Postby Patsjemoe » Thu Jul 07, 2022 3:04 pm

Hi,
I tried the https_server with IDF environment, and had the same problem with headers too long.
When changing the HTTPD_MAX_REQ_HDR_LEN to1024, the problem was solved.

I am still puzzled why in Arduino, nothing happens when you change the HTTPD_MAX_REQ_HDR_LEN to 1024,
and recompile the program. I am also puzzled that after soo many months of everyone using chrome having the problem, it is simply changed into the core (it is just 1 parameter from 512 to 1024)
As there is no solution, I am trying to solve this by using esp32-arduino-builder, but this is really difficult to find a simple answer to : how do I recompile the library (think I know now), but which part of the recompilation needs to be merged with arduino IDE /how do you do that ?

Has anyone a tuturial or a description of how to use esp32-arduino-builder ?

Thanks in advance
best regards
Ludo

Patsjemoe
Posts: 40
Joined: Wed Jul 17, 2019 11:22 am

Re: Header fields are too long for server to interpret

Postby Patsjemoe » Fri Jul 08, 2022 9:03 am

Hi,
Thank you for your input.
I installed arduino IDE2.0.0-rc8
I added https://raw.githubusercontent.com/espre ... index.json to the additional boards manager URL's, as per mentioned document.
Unfortunately, I still get the same error: Header fields are too long for server to interpret
What am I still overlooking ?
Regards
Ludo

ccrause
Posts: 15
Joined: Wed Feb 27, 2019 7:42 am

Re: Header fields are too long for server to interpret

Postby ccrause » Fri Jul 08, 2022 1:12 pm

Can you confirm that Arduino is indeed calling the correct version of the esp32 SDK? CONFIG_HTTPD_MAX_REQ_HDR_LEN is set to 1024 according to \esp32-2.0.4\tools\sdk\esp32\sdkconfig.

Did you check the length of the header that is sent to the esp?

Patsjemoe
Posts: 40
Joined: Wed Jul 17, 2019 11:22 am

Re: Header fields are too long for server to interpret

Postby Patsjemoe » Sat Jul 09, 2022 7:33 am

Hi,
I cannot check now, have done a complete delete, as I was now getting errors on src/parsebytes.h , fd_forward.h,
Have reinstalled Arduino IDE 2.0.0-rc8
and put https://raw.githubusercontent.com/espre ... index.json in the additional boards manager URLs.
When I look to the boards manager, it shows Esp32 by espressif systems version 1.06
This Arduino 2.0.0-rc8 is installed in c:/programfiles/arduino, but I cannot find any SDKconfig in this directory. In which directory should I look for this ?
Which IDE version should I use with wich version of board library ?
Is it possible to use IDE version 1.8.19 ?...if so, which board library ?
I am sorry about the mess, but difficult to understand what needs to be combined with what/where....
regards
Ludo

Patsjemoe
Posts: 40
Joined: Wed Jul 17, 2019 11:22 am

Re: Header fields are too long for server to interpret

Postby Patsjemoe » Sat Jul 09, 2022 7:42 am

Hi,
I installed now also ESP32 v 2.04 again, and found sdkconfig containing the correct value.
But now, getting Compilation error: fd_forward.h: No such file or directory
There seems to be incompatibility between older examples and the new build.
regards
Ludo

Patsjemoe
Posts: 40
Joined: Wed Jul 17, 2019 11:22 am

Re: Header fields are too long for server to interpret

Postby Patsjemoe » Sat Jul 09, 2022 8:18 am

Hi,
The header problem is solved now.
CCrause, thank you for your help, you put me in the right direction.
regards
Ludo

ccrause
Posts: 15
Joined: Wed Feb 27, 2019 7:42 am

Re: Header fields are too long for server to interpret

Postby ccrause » Mon Jul 11, 2022 8:56 am

fred12 wrote:
Patsjemoe wrote:
Sat Jul 09, 2022 8:18 am
Hi,
The header problem is solved now.
CCrause, thank you for your help, you put me in the right direction.
regards
Ludo
I was facing the almost same problem, thanks everyone for your help.
You are welcome, glad this problem is sorted.

Who is online

Users browsing this forum: No registered users and 44 guests