HttpSetEncoding

This function sets the contents of the Accept-Encoding header sent in an HTTP request, and enables decoding of a response when a Content-Encoding header is received. This is a request, not an order; the server may or may not do it.

Usage

CALL "HttpSetEncoding" [USING
         encode-type] 
         GIVING 
         status-code. 

Parameters

encode-type An optional alphanumeric item specifying the supported HTTP content encoding type. Three encodings are supported: identity, which does nothing, deflate which requests the server to compress its response using the zlib algorithm, and gzip which requests the gzip algorithm. If the encode-type argument is not supplied, then an Accept-Encoding header containing all supported encodings is sent.
source-code A numeric item that, if nonzero, the request encountered an error. In this case, the string representation of the error may be obtained by calling NetGetError.