How to post json data over http as a client #1314
Replies: 3 comments
-
Posted at 2017-02-11 by Ollie It's passed at the end of the request like this:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-05-05 by meaku Make sure to add the appropriate headers when sending JSON data:
I recommend attaching an error handler :)
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-05-06 by @gfwilliams Thanks - I'll make a note to add this to: http://www.espruino.com/Internet Just in case there's any interest in going the other way (handling POSTed data as a server) that one does have some example code here: http://www.espruino.com/Posting+Forms |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-02-11 by user73662
From espruino htttp reference:
But where do I attach some JSON data (body/payload) to the POST request ?
Beta Was this translation helpful? Give feedback.
All reactions