These are chat archives for SmingHub/Sming

1st
Oct 2017
BotoX
@BotoX
Oct 01 2017 21:56
Hi, I'm trying to get JSON from the BODY of a POST request to my sming http server
request.getBodyStream() is NULL, request.getBody() is an empty string ...
testing like so: curl -v -H "Content-Type: application/json" -X POST -d '{"test": true}' esp8266
BotoX
@BotoX
Oct 01 2017 22:04
well how cool is that, the HTTP server won't do anything with the body if it's not urlencoded .. https://github.com/SmingHub/Sming/blob/develop/Sming/SmingCore/Network/Http/HttpServerConnection.cpp#L247
BotoX
@BotoX
Oct 01 2017 22:13
Oh, let's try this SmingHub/Sming#1236