urlFetch
- Makes an HTTP request to a web server with optional post data parameters.*
xpertrule.urlFetch(aURL, postData);
- "aURL" holds the url to either POST or GET data from.
- "postData" Optional: Holds the additinal post parameters to send with the request. If this parameter is specified, a POST request is made to the server, otherwise a GET request is made.
The method returns the result of the HTTP request. For an example, see the URL Fetch section.
Please note: stringification of postData should be done by the developer:
var postStr = JSON.stringify(postData);
xpertrule.urlFetch(aURL, postStr);