asyncPost
Send an asynchronous post to the given URL. Call the given functionwhen the post has completed. The data retrievedfrom the HTTP Post is passed as a stringas the first variable in the method.
If the MIME type of the HTTP response is image or binary,the result will be a byte array containing what is fetched.
Syntax
ogscript.asyncPost (URL, HTTP Post Data, Callback Function, Include Response);
Parameters
Parameter |
Type |
Required |
Description |
URL |
String |
Yes |
URL to send a post. |
HTTP Post Data |
String |
Yes |
Post to send to the specified URL. |
Callback Function |
Function |
Yes |
Function to call after the post completes. |
Include Response |
Boolean |
No |
If true, result is a JSON Object { responseCode = HTTP RESONSE CODE, contentType = HTTP MIME TYPE url = URL Requested bytes= BYTES RECEIVED } Otherwise, it is content fetched over HTTP parsed as though it’s a string (as before). |
Returns
N/A
Example
Coming soon.