|Mac & Win
Ask for HTTP Transfer Encoding.
|The CURL session handle.
|The new setting.
Returns OK or error.
DescriptionAsk for HTTP Transfer Encoding.
Pass 1 to enable or 0 to disable.
Adds a request for compressed Transfer Encoding in the outgoing HTTP request. If the server supports this and so desires, it can respond with the HTTP response sent using a compressed Transfer-Encoding that will be automatically uncompressed by libcurl on reception.
Transfer-Encoding differs slightly from the Content-Encoding you ask for with CURL.SetOptionAcceptEncoding in that a Transfer-Encoding is strictly meant to be for the transfer and thus MUST be decoded before the data arrives in the client. Traditionally, Transfer-Encoding has been much less used and supported by both HTTP clients and HTTP servers.
See also TRANSFER_ENCODING option in CURL manual.
Enable transfer encoding:
Created 8th July 2015, last changed 8th December 2016