InternetProxy.Default

Syntax:

New InternetProxy(<DefaultProxy>)

Parameters:

<DefaultProxy> (optional)

Type: Boolean.
Specifies if an object will be initialized by default proxy settings.
If the parameter value is True, initialization of the object with the values from the file inetcfg.xml is attempted. If no such file exists, the values are taken from the system settings.
In Windows OS, the system settings input through Internet Explorer are used.
In Linux OS, the settings are taken from the following environment variables:
  • http_proxy
  • https_proxy
  • ftp_proxy
  • ftps_proxy
If no values of a variable were set, an attempt is made to obtain the proxy settings for the corresponding protocol from the environment variable all_proxy.
If environment variables contains incorrect strings, their values are ignored (the exception is not raised).
In the compatibility mode Version8_3_5 and below, no environment variable values are used.
Default value: True.

Description:

Creates uninitialized object InternetProxy. Its initialization depends on the DefaultProxy parameter values.

Example:

ProxyServer = New InternetProxy;
ProxyServer.User = UserName;
ProxyServer.Password       = UserPassword ;
Try
    HTTP = New HTTPConnection(SourceServer,,,, ProxyServer);
Except
EndTry;


    

1C:Enterprise Developer's Community