INetServiceProxy.Active

Syntax

Active: Boolean;

Description

The Active property determines whether proxy server is used.

Comments

Available values:

Example

Add links to the Net system assembly.

Sub UserProc;
Var
    Proxy: INetServiceProxy;
Begin
    Proxy := 
New NetServiceProxy.Create;
    Proxy.Active := 
True;
    Proxy.Address := 
"proxy.server.ru";
    Proxy.Port := 
"8080";
    Proxy.NeedAuthentication := 
True;
    Proxy.User := 
"User";
    Proxy.Password := 
"Password";
    Proxy.NoProxyString := 
"*.project.com,localhost";
    Proxy.Save;
    Debug.WriteLine(Proxy.ConnectionString);
End Sub UserProc;

After executing the example the use of proxy server on working with Internet is enabled. The necessary parameters will be set for proxy server: address and port, user data for proxy server authentication, list of domains accessed directly.

The development environment console displays the full connection string for proxy server that is created based on the specified settings.

See also:

INetServiceProxy