Difference between revisions of "GetHTTPPage"
From SCAR Divi Manual
(→Example) |
|||
Line 14: | Line 14: | ||
var | var | ||
i: Integer; | i: Integer; | ||
+ | |||
begin | begin | ||
i := InitializeHTTPClient(True, True); | i := InitializeHTTPClient(True, True); |
Revision as of 23:18, 1 July 2011
Definition
function GetHTTPPage(const iHttp: Integer; const URL: AnsiString): AnsiString;
Availability
SCAR Divi 3.00 > Current
Description
This function gets the content of a webpage specified by URL from an open HTTP connection specified by iHttp.
Example
var i: Integer; begin i := InitializeHTTPClient(True, True); try WriteLn(GetHTTPPage(i, 'http://www.google.com/')); finally FreeHTTPClient(i); end; end.