HTTPCall('Get','http://www.magicsoftware.com/index.html','', 'If-Modified-Since: Tue, 7 Aug 2001 12:00:00 GMT', 'User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)')
This example requests the file 'index.html' specified at the URL.
The first header parameter asks to retrieve the page only if it was modified after the provided date.
The second header parameter provides the server with the type of user agent that this request simulates.
HTTPCall('Post','http://localhost/Service', A,'User-Agent: "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"')
HTTPCall('PUT','https://reqres.in/api/users/2', A,'User-Agent: "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"')
HTTPCall('PATCH','https://reqres.in/api/users/', A,'User-Agent: "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)"')
where: A is a BLOB value that contains a collection of variables.
|