cotestatnt / esp-fs-webserver

ESP32/ESP8266 webserver, WiFi manager and web editor Arduino library
MIT License
117 stars 28 forks source link

fix problem with special character in post parameters #22

Closed Blueforcer closed 1 year ago

Blueforcer commented 1 year ago

im not that pro, but this "fix" worked for my problem #21. maybe you want to use it anyway ;) Change connection parameter from http-parameters to json closes #21

cotestatnt commented 1 year ago

Hi @Blueforcer and thank you for your efforts which are very apreciated.

I also thought about using a JSON-encoded payload in the beginning, but it's not really necessary and adds an extra layer of data encoding. If you look at the source that I modified yesterday it was enough for me to change the "content type" POST request sent to the ESP going from "application/x-www-form-urlencoded" to "multipart/form-data".

The WebServer class included in the ESP core is already able to parse this type of data encoding without problems and therefore it is not necessary to add an "external" decoding using the ArduinoJson library.