Has anybody figured out how to perform a POST with data?
I want to use a web service that only accept POST - not GET - and want all argument as POST data - not URL arguments.
Looking at the definition of makeJsonRequest, I guess there can be an option hidden somewhere. But...
- (Object) makeJsonRequest(url, request, options, responseCallback)
To use Garmin Connect Mobile as a proxy to the web, use makeJsonRequest(). The request is asynchronous; the responseCallback will be called when the request returns.
Parameters:
url (String) — The URL being requested
request (Dictionary) — Dictionary of keys and values, appended to the URL as a GET request. Can be null.
options (Dictionary) — Dictionary of options. Can be null. makeJsonRequest does not currently support any options. Future options are TBD.
responseCallback (Method) — This is a callback in the format function responseCallback(responseCode, data); responseCode has the server response code, and data contains a Dictionary of content if the request was successful.