HTTPConnection.Default

Syntax:

New HTTPConnection(<Host>, <Port>, <User>, <Password>, <Proxy>, <Timeout>, <SecureConnection>, <UseOSAuthentication>)

Parameters:

<Host> (required)

Type: String.
Server host, with which the connection is established.
Note: Host name should not contain protocol indication. For example, 1c.ru.

<Port> (optional)

Type: Number.
Connection server port.
Default value for HTTP connections is 80, for secure HTTPS connections - 443.
Default value: default port for the protocol.

<User> (optional)

Type: String.
Name of a user on the specified server.

<Password> (optional)

Type: String.
Password for a user on the specified server.

<Proxy> (optional)

Type: InternetProxy.
Proxy used to connect to server.

<Timeout> (optional)

Type: Number.
Defines timeout for connection and operations in seconds.
0 - timeout is not set.
Default value: 0.

<SecureConnection> (optional)

Type: OpenSSLSecureConnection; Undefined.
Contains secure connection object for HTTPS connection if specified.
Default value: Undefined.

<UseOSAuthentication> (optional)

Type: Boolean.
Includes use of NTLM or Negotiate authorization on the server.
Default value: False.

Description:

Creates object HTTPConnection.

Example:

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


    

1C:Enterprise Developer's Community