CURL.SetOptionHTTPTransferDecoding
----------------------------------

Sets how to act on transfer decoding.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [2.5](newinversion25.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.SetOptionHTTPTransferDecoding"; curl; Value ) 

**MBS**( **"CURL.SetOptionHTTPTransferDecoding";** /\* Sets how to act on transfer decoding. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* Whether to decode.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | Whether to decode. | 1 |

### Result

Returns "OK" on success.

### Description

Sets how to act on transfer decoding.   
If set to zero, transfer decoding will be disabled, if set to 1 it is enabled (default). libcurl does chunked transfer decoding by default unless this option is set to zero.  
See also [HTTP\_TRANSFER\_DECODING](https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_TRANSFER_DECODING.html) option in CURL manual.

### See also

- [CURL.SetOptionHTTPContentDecoding](CURLSetOptionHTTPContentDecoding.md)
- [CURL.SetOptionTransferEncoding](CURLSetOptionTransferEncoding.md)

Created 18th August 2014 , last changed 18th August 2014

  
[CURL.SetOptionHTTPProxyTunnel](CURLSetOptionHTTPProxyTunnel.md) - [CURL.SetOptionHTTPVersion](CURLSetOptionHTTPVersion.md)

[HTML Version](CURLSetOptionHTTPTransferDecoding.shtml)