Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


Sets the type of the proxy.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 2.5 Yes Yes Yes Yes Yes

MBS( "CURL.SetOptionProxyType"; Handle; Value )


Parameter Description Example value
Handle The CURL session handle. $curl
Value The proxy type. Pass number listed below, e.g. 1 for CURLPROXY_HTTP_1_0. 1


Returns "OK" on success.


Sets the type of the proxy.
Available options for this are CURLPROXY_HTTP (0), CURLPROXY_HTTP_1_0 (1), CURLPROXY_SOCKS4 (4), CURLPROXY_SOCKS5 (5), CURLPROXY_SOCKS4A (6) and CURLPROXY_SOCKS5_HOSTNAME (7). The HTTP type is default.

If you set proxy type to CURLPROXY_HTTP_1_0 (0), it will only affect how libcurl speaks to a proxy when CONNECT is used. The HTTP version used for "regular" HTTP requests is instead controlled with CURL.SetOptionHTTPVersion.


Set Socks 5 proxy:

MBS( "CURL.SetOptionProxyType"; $curl; 5 )

See also

CURL.SetOptionProxyTransferMode   -   CURL.SetOptionProxyUsername

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins