The HTTPClient object has improved the following functions:
-
SetRequestHeader: supports to add a request header or add/replace the value in the existing request header if the header already exists.
SetRequestHeader ( string headerName, string headerValue{, Boolean replace } ) -
SendRequest: supports to encode the data with the charset which is specified by the user in the Content-Type request header, if charset is not specified, this function will encode the data in UTF-8 by default.
-
GetResponseBody: supports to encode the data with the charset which is specified by the user in the Content-Type request header; if charset is not specified, this function determines the encoding type based on the BOM header, and then converts the data into UNICODE.
The HTTPClient object has added the following new properties:
-
IgnoreServerCertificate -- Ignores certain type(s) of server certificate error when sending a request.
-
CheckForServerCertRevocation -- Checks if the server certificate is revoked when sending a request.
For more details about these functions, refer to the section called “HTTPClient object” in Objects and Controls.


