SetProxyDetails

From SCAR Divi Manual
Jump to: navigation, search

Definition

procedure SetProxyDetails(const iHttp: Integer; const IP: AnsiString; const Port: Integer);

Availability

SCAR Divi 3.20 > Current

Description

Sets up the proxy details for an open HTTP connection specified by iHttp. The proxy IP is given by the string IP and the port is given by Port.

Example

var
  i: Integer;

const
  Host = '123.45.67.89'; // Host IP
  Port = 1234;           // Host Port

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

See Also