Can anyone help me, I'm trying to construct a POST request to post data to a web service. Does anyone know of any examples they can point me to?
I have a RESTful endpoint that I want to POST to at api.example.com/test (it's using the ArrestDB library). The Body should contain two fields, "device_id" and "value". I understand the basics of URLEncoded or JSON encode body data, but I can get my head round how to construct request (URL+Body).
thanks
Jim