sendRequestUtf8

sendRequestUtf8(verb:                String,
                additionalHeaders:   String;
                optionalPostPutData: StringUtf8): Boolean;

The sendRequestUtf8 method of the JadeHTTPConnection class sends the specified request from an ANSI system as StringUtf8 data to the HTTP server and allows the client to specify additional headers to send along with the request. In addition, it allows the client to specify optional data to send to the HTTP server immediately following the request headers.

This feature is generally used for write operations such as PUT and POST.

The verb parameter specifies the HTTP verb to use in the request. The value can be "GET" (the default), "POST", "DELETE", "PUT", or null. A null value implies a "GET" request.

The additionalHeaders parameter specifies a string containing the additional headers to be appended to the request. If there are no additional headers to be appended, the value of this parameter can be null.

The optionalPostPutData parameter specifies a string, encoded in UTF‑8 format, containing any optional data to be sent immediately after the request headers. This parameter is generally used for POST and PUT operations. The optional data can be the resource or information being posted to the server. If there is no optional data to send, the value of this parameter can be null.

This method returns true if the send request was successful; otherwise it returns false (for example, if the request times out).

2020.0.01 and higher