Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  


Ask for HTTP Transfer Encoding.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 5.2 Yes Yes Yes Yes Yes
MBS( "CURL.SetOptionTransferEncoding"; curl; Param )   More


Parameter Description Example value
curl The CURL session handle. $curl
Param The new setting. 1


Returns OK or error.


Ask 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:

MBS( "CURL.SetOptionTransferEncoding"; $curl; 1 )

See also

Created 8th July 2015, last changed 8th December 2016

CURL.SetOptionTimeoutMS   -   CURL.SetOptionTransferText

Feedback: Report problem or ask question.

MBS FileMaker blog