-
-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add access to httprequest body #143
Comments
Hi, The fact that I do not know how, and I asked in gitter and they said it On Mon, Jun 29, 2015 at 12:43 AM, Dmitry Kireev [email protected]
|
is there a way to access the body? |
I have the exact same problem. Parsing the body as POST request parameters is not always useful. What would be the preferred way of solving this in Sming? We could for example not parse the body by default, but supply method on the request object which parses the body if needed. Or we keep a copy of the body around. But that doesn't sound very efficient. |
Just for information: I implemented a first attemp to solve this problem (see here https://github.com/dereulenspiegel/Sming/tree/http-body). I will create a pull request from this, since it shouldn't break anything. |
Working on a solution in PR #487. |
I want to use json with web, and send data from webpage (supplied by esp) to the server (esp server), using ajax.
I want to use AJAX to trigger a command on the server and use JSON to tell its params and data.
There is no way on the server side to reach the body of the request and parse the JSON payload.
For instance, have a button to toggle a relay (from web) and return the current state in the response.
The text was updated successfully, but these errors were encountered: