HTTPClient object
The HTTPClient object is a base object for sending HTTP requests and
receiving HTTP responses from a resource identified by a URI. Compared to
the Inet object, the HTTPClient object is easier to use and supports more
methods (Get/Post/Put/Delete) and more SSL protocols (TLS 1.0, TLS 1.1,
TLS 1.2, TLS 1.3, SSL 2.0, and SSL 3.0).
Note
It is not supported to use this object to process large data (20
MB or 100,000 data rows can be considered as large data based on our
tests), because this object will call a third-party library which is
memory intensive. If you want to process large data using HTTPClient, it
is recommended that you disable the AutoReadData property (by default it is
enabled) and use the ReadData
function. See a code example in ReadData
for how to process large data.
Note
This object cannot be referenced in the .NET Assembly component,
otherwise the component will fail to be deployed.
Note
This object uses your computer’s proxy settings directly. It
currently does not support enabling/disabling the proxy settings or
configuring its own proxy.
Properties
|
HTTPClient property |
Datatype |
Description |
|---|---|---|
|
Boolean |
Whether to allow the client to access the server |
|
|
Boolean |
Whether to read the response body |
|
|
Boolean |
Checks if the server certificate is |
|
|
Boolean |
Whether to enable support for the HTTP2 connection |
|
|
Integer |
Ignores certain error(s) of the server |
|
|
Integer |
Specifies the security protocol. |
|
|
Long |
Specifies the timeout seconds. |
|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
Events
|
HTTPClient event |
Occurs |
|---|---|
|
Immediately before the Open event occurs in the |
|
|
Immediately after the Close event occurs in the |
Functions
|
HTTPClient function |
Datatype returned |
Description |
|---|---|---|
|
String |
Returns the name assigned to the |
|
|
Integer |
Clears the client certificate that is set with |
|
|
Integer |
Clears the headers of the request. |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
String |
Gets the HTTP protocol version used in |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
String |
Gets the request header by name. |
|
|
String |
Gets all of the request headers’ |
|
|
Integer |
Gets the response body. |
|
|
String |
Gets the response header by name. |
|
|
String |
Gets all of the response headers’ |
|
|
Long |
Gets the response status code. |
|
|
String |
Gets the response status |
|
|
Integer |
Gets the currently supported authentication |
|
|
Integer |
Sends the data with POST method. |
|
|
Integer |
Finishes sending the data with POST |
|
|
Integer |
Starts sending the data with POST |
|
|
Boolean |
Adds an event to the end of the message queue for |
|
|
Integer |
Reads the response body. |
|
|
Integer |
Sends the request again. |
|
|
Integer |
Sends the request to the server. |
|
|
Integer |
Sets the client certificate that will be used to |
|
|
Integer |
Sets the current authentication |
|
|
Integer |
Sets the request header. |
|
|
Integer |
Sets all of the request headers’ |
|
|
Integer |
Triggers a specific event in the object and |
|
|
Object |
Returns the type of the object. |