getHttpPageBinary

getHttpPageBinary(pVerb:        String,
                  pServerName:  String;
                  pUrlAddress:  String;
                  pMessage:     String;
                  pContentType: String): Binary;

The getHttpPageBinary method of the JadeHTTPConnection class returns the complete requested page in binary format, with no text encoding conversion performed.

The pVerb parameter specifies the HTTP verb to use in the request. The value can be "GET" (the default value), "POST", or null.

The pServerName parameter specifies the scheme, host, and other optional parameters. This parameter value is specified as "scheme://[user[:password]@]host[:port]", where:

If the value of the pServerName parameter is null, the host information portion of the url property is used (that is, [user[:password]@]host[:port]).

The pUrlAddress parameter specifies the relative URI from the server (that is, [/]path[?query][#fragment]). If this value is null, the value of the url property is used.

The optional pMessage parameter specifies the body of the message for POST requests (that is, SOAP requests, and so on).

The pContentType parameter specifies the content type. For SOAP 1.2, it is set to "application/soap+xml" as well as an optional action parameter. If the value of the pContentType parameter is null, it defaults to "text/xml; charset=utf-8".

The getHttpPageBinary method returns the complete page, or it returns null if there is a problem. Use the queryStatusCode method to determine the HTTP error.