-->
Page 1 of 1

ESP8266 and application/json POST data

PostPosted: Mon Feb 27, 2017 10:26 am
by treii28
I'll venture to try to resolve this question if I get no answers by the time I get home, but I don't have an ESP in front of me at the moment and I was curious if anyone might know this off the top of their head.

I've run into trouble in the past using PHP when receiving AJAX/REST http POST data in that the content type is different than what PHP is expecting. ($_POST ends up empty and you instead have to use a workaround to read the contents of the raw input)

I assume that since arduino/Esp programming is a bit more on the 'raw' side of things, that I shouldn't have any problem reading the Content headers to get the post parameters? (trying to remember back, but it's been a few months since I had to get into the ESP side of things and I hope to get a head-start before firing one up tonight.)

Tre'