GetRawHeaders

From SCAR Divi Manual
Jump to: navigation, search

Definition

function GetRawHeaders(const iHttp: Integer): AnsiString;

Availability

SCAR Divi 3.00 > Current

Description

Returns the raw headers of the last HTTP request made with the HTTP connection associated with the index iHttp in the HTTP client resource manager.

Example

var
  i: Integer;

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