HTTPConnection.Default
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, example.com.
<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. In the web client, the parameter value is ignored.
<Timeout> (optional)
Type: Number. Defines timeout for connection and operations in seconds. 0 - timeout is not set. Default value: 0.
<SecureConnection> (optional)
Type: OpenSSLSecureConnection, CryptoProSecureConnection, Undefined. Secure connection object for HTTPS connection, if specified. Default value: Undefined.
<UseOSAuthentication> (optional)
Type: Boolean. Enables NTLM or Negotiate authentication on the server. In the web client, the parameter value must be either Undefined or True. If the value parameter is set to False, the "Invalid parameter value" exception is thrown. Default value: In the web client, it is True. Otherwise, it is False.
Description
Creates object HTTPConnection.
Example
ProxyServer = New InternetProxy;
ProxyServer.User = UserName;
ProxyServer.Password = UserPassword ;
Try
HTTP = New HTTPConnection(SourceServer,,,, ProxyServer);
Except
EndTry;
No comments to display
No comments to display