CURL.SetOptionHTTPProxyTunnel
-----------------------------

Set to 1 to make the library tunnel all operations through a given HTTP proxy.

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

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

**MBS**( **"CURL.SetOptionHTTPProxyTunnel";** /\* Set to 1 to make the library tunnel all operations through a given HTTP proxy. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* Whether to tunnel or not. (1 to tunnel, 0 to not tunnel)e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | Whether to tunnel or not. (1 to tunnel, 0 to not tunnel) | 1 |

### Result

Returns "OK" on success.

### Description

Set to 1 to make the library tunnel all operations through a given HTTP proxy.   
There is a big difference between using a proxy and to tunnel through it. If you don't know what this means, you probably don't want this tunneling option.  
See also [HTTPPROXYTUNNEL](https://curl.haxx.se/libcurl/c/CURLOPT_HTTPPROXYTUNNEL.html) option in CURL manual.

### See also

- [CURL.SetOptionProxy](CURLSetOptionProxy.md)

### Blog Entries

- [Translating Insert from URL options for CURL to MBS Plugin calls](https://www.mbsplugins.de/archive/2020-12-14/Translating_Insert_from_URL_op/monkeybreadsoftware_blog_filemaker)

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

  
[CURL.SetOptionHTTPHeader](CURLSetOptionHTTPHeader.md) - [CURL.SetOptionHTTPTransferDecoding](CURLSetOptionHTTPTransferDecoding.md)

[HTML Version](CURLSetOptionHTTPProxyTunnel.shtml)