sendRequest

sendRequest(verb:                String,
            additionalHeaders:   String;
            optionalPostPutData: String): Boolean;

The sendRequest method of the JadeHTTPConnection class sends the specified request 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", 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 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.