Enhanced HTTPClient object
The following functions for the HTTPClient object are
enhanced:
-
SetRequestHeader: supports to add a request header or
add/replace the value in the existing request header if the
header already exists.1SetRequestHeader ( 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.
For more details about these functions, refer to the section called “HTTPClient object” in Objects and Controls.