This is an old revision of the document!
| Statement | WinHTTPGet |
|---|---|
| Version | 2.4.9+ |
| Purpose | Enables the script to retrieve a web page using the WinINET functionality |
The WinHTTPGet statement requires a url, headers variable name and content variable name, in the format
WinHTTPGet <url> <headers variable name> <content variable name>
The following example will retrieve the webpage "http://www.pscs.co.uk", return the HTTP headers into the ${hdrs} variable and return the content into the ${content} variable
WinHTTPGet "http://www.pscs.co.uk" hdrs content