Difference between revisions of "GetHTTPPage"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <func>function GetHTTPPage(const iHttp: Integer; const URL: AnsiString): AnsiString;</func> ==Availability== SCAR Divi 3.00 > Current ==Description== This functi...")
(No difference)

Revision as of 09:50, 26 June 2011

Definition

<func>function GetHTTPPage(const iHttp: Integer; const URL: AnsiString): AnsiString;</func>

Availability

SCAR Divi 3.00 > Current

Description

This function uses an open HTTP connection specified by iHttp to get the contents of a webpage specified by URL and returns them.

Example

var
  i: Integer;
begin
  i := InitializeHTTPClient(True, True);
  try
    WriteLn(GetHTTPPage(i, 'http://www.google.com/'));
  finally
    FreeHTTPClient(i);
  end;
end.

See Also