WiFiManager: ERROR:The Content-Length header occurred more than once, at most one is allowed.

Hardware

WiFimanager Branch/Release: Master

Esp8266

Hardware: ESP-12e

Core Version: 2.7.4

Description

I don’t know if this is supposed to be posted here but when I try to make an HTTP request for the esp from my mobile application that I am developing while it’s on AP mode and waiting for configuration i.e, http://192.168.4.1 I get the following error The Content-Length header occurred more than once, at most one is allowed. though I can communicate it with google chrome as normal. keep in mind that when I try to communicate to the esp after its configuration like http://192.168.1.200 it’s all good with the same code from my flutter application. I don’t know what happens in there, I was hoping for any help by your side I’m using the latest library release 0.16 I am developing a flutter application and making an HTTP request with the HTTP package

Module: NodeMcu

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19

Commits related to this issue

Most upvoted comments

I would assume httpdclients should just ignore dup headers if they are identical, but who knows, technically it is against spec to send multiples

Wil, based on the question I submitted on StackOverFlow someone submitted an issue requesting to ignore the error if the values are identical. like you are recommending.

Try it now, I tried old versions and its fine, so I am just gonna leave these out now

Yup its definitely sending it twice

crap I will look right now

Add it is only that page? Does it do the same if not sending params as get arguments?