-->
Page 2 of 2

Re: Server.args() ESP8266 not parsing

PostPosted: Fri May 27, 2016 4:43 am
by rahulmr
bbx10node wrote:I do not know much about IFTTT. Try content type: application/x-www-form-urlencoded.

Is that because the POST request from the IFTTT misses something which is required for the parsing of the args ?

Yes, the POST request data is in JSON format instead of application/x-www-form-urlencoded. The ESP8266WebServer library does not parse JSON but it does parse urlencoded form data.



In simple words, I tried all the available Content types from the IFTTT, text/plain,application/ json and application/x-www-form-urlencoded.

and in all the types , the body was just the {{Message}} . But in all cases the parsing showed nothing and was blank

Re: Server.args() ESP8266 not parsing

PostPosted: Fri May 27, 2016 5:01 am
by bbx10node
For the body try the following.

Code: Select allarg1={{Message}}


Use content type: application/x-www-form-urlencoded.