Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CURL.SetOptionProxyPort
The proxy port to connect to unless it is specified in the proxy string with CURL.SetOptionProxy.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "CURL.SetOptionProxyPort"; curl; Value ) More
Parameters
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
Value | The new port value. | 8080 |
Result
Returns "OK" on success.
Description
The proxy port to connect to unless it is specified in the proxy string with CURL.SetOptionProxy.See also PROXYPORT option in CURL manual.
Examples
Set proxy with explicit port:
Set Variable [ $r; MBS( "CURL.SetOptionProxy"; $curl; "http://cache.local.com/“)]
Set Variable [ $r; MBS( "CURL.SetOptionProxyPort"; $curl; 8000)]
See also
- CURL.SetOptionProtocols
- CURL.SetOptionProxy
- CURL.SetOptionProxyAuth
- CURL.SetOptionProxyCAInfo
- CURL.SetOptionProxyCAPath
- CURL.SetOptionProxyHeader
- CURL.SetOptionProxyPassword
- CURL.SetOptionProxySSLCert
- CURL.SetOptionProxySSLKey
- CURL.SetOptionProxyType
Blog Entries
Created 18th August 2014, last changed 4th February 2016
CURL.SetOptionProxyPinnedPublicKey - CURL.SetOptionProxySSLCert