AddSSLHandler

From SCAR Divi Manual
Revision as of 12:28, 3 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> procedure AddSSLHandler(const Index: Integer; const HTTP: Boolean); </source> ==Availability== SCAR Divi 3.00 > Current ==Desc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

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

Availability

SCAR Divi 3.00 > Current

Description

Adds an SSL handler to a connection specified by Index. If HTTP is true, the connection is an HTTP connection, else just a regular TCP connection.

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