DriveWorks Pro 15: SppHTTPGetRequest [send feedback...]

SppHTTPGetRequest

Make HTTP GET requests by passing in a URL.

Syntax

SppHTTPGetRequest([URL String],[Timeout])

Where:

URL String is a string of text representing a HTTP request. Add any parameters to this string including API keys.

Timeout is the timeout value in seconds. If no response is received within this time the call will close.

Examples

RuleMeaning
SppHttpGetRequest("http://www.driveworks.co.uk",10)Will return data from the specified URL.
SppHttpGetRequest("https://maps.googleapis.com/maps/api/distancematrix/xml?origins=thelwall&destinations=london&units=imperial",10) Will return data from the specified URL, which will contain the distance between the two specified locations.
SppHttpGetRequest("https://maps.googleapis.com/maps/api/distancematrix/xml?origins=&"FromReturn"&&destinations=&"ToReturn"&&units=imperial",10) As above but the name of the locations are coming from Form Control values.
For more information on the parameters that can be passed into Google Maps, please see The Google Maps Distance Matrix API.

Table of Contents