Page 1 of 1

parsing https POST body

Posted: Mon Nov 01, 2021 2:45 pm
by Dansen
Hello guys!

I'm currently working on a https server implementation and found neither documentary or examples in which you can receive and further parse a POSTrequest Body.

anyone got some ideas?

Re: parsing https POST body

Posted: Tue Nov 02, 2021 3:05 am
by ESP_Sprite
You need to be a bit more specific than that... are you building your own https server code from scratch, or are you using an existing http(s) server library? If so, which one?

Re: parsing https POST body

Posted: Tue Nov 02, 2021 7:28 am
by Dansen
Hello!

Yeah sure. So basically i used the https "simple" example as a template and added a login handler. within the URL "/login" the user should be allowed to send me usercredentials via a https POST in the Body of the request.

After receiving the Body(in json format) I either want to grant access or deny.