HTTPConnection.CallHTTPMethod

Syntax:

CallHTTPMethod(<HTTPMethod>, <HTTPRequest>, <OutputFileName>)

Parameters:

<HTTPMethod> (required)

Type: String.
A string containing HTTP-method for the query.
According to RFC2616 standard (http://www.w3.org/Protocols/rfc2616/rfc2616), a string should contain only Latin characters.

<HTTPRequest> (required)

Type: HTTPRequest.
Query sent to the server.

<OutputFileName> (optional)

Type: String.
Name of the file, to which the response body is written.
If it is not set, then the response body can be obtained using the HTTPResponse object.
Default value: Empty string.

Returned value:

Type: HTTPResponse.
If the OutputFileName parameter is set, the response body will be recorded in a file. Otherwise, the response body can be obtained using GetBodyAsString and GetBodyAsBinaryData methods of the HTTPResponse object.

Description:

Sends data at the specified address to be processed using the specified HTTP-method.

Availability:

Thin client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Note:

If the GET method is used, the query body is not sent to the server.

    

1C:Enterprise Developer's Community