AddSSLHandler

From SCAR Divi Manual
Revision as of 09:54, 4 July 2011 by Freddy (talk | contribs)
Jump to: navigation, search

Definition

procedure AddSSLHandler(const Index: Integer; const HTTP: Boolean);

Availability

SCAR Divi 3.00 > Current

  • Before SCAR Divi 3.25, if HTTP was set to false, an SSL handler could be added to a TCP connection.

Description

Adds an SSL handler to an HTTP connection specified by Index. The parameter HTTP should always be true.

Example

var
  i: Integer;

begin
  i := InitializeHTTPClient(True, True);
  try
    AddSSLHandler(i, True);
    WriteLn(GetHTTPPage(i, 'https://encrypted.google.com/'));
  finally
    FreeHTTPClient(i);
  end;
end.

See Also