Active: Boolean;
The Active property determines whether proxy server is used.
Available values:
True. Proxy server is used.
False. Default value. Proxy server is not used.
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: