Meet us at at Real World in Orlando, Florida.

All functions   Mac OS X   Windows   Crossplatform   Components   Guides  
New in version: 2.0   2.1   2.2   2.3   2.4   2.5   2.6   2.7   2.8  

CURL.SetOptionProxyType

Component: CURL
Version: 2.5
Mac OS X: Works
Windows: Works

MBS( "CURL.SetOptionProxyType"; handle; value )

Parameters

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

Result

Returns "OK" on success.

Description

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.

Feedback: Report problem or ask question.




Links
MBS Realbasic tutorial videos - Nachhilfe Nickenich