Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CURL.SetOptionProxyAuth
Sets which authentication methods are used.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "CURL.SetOptionProxyAuth"; curl; Value ) More
Parameters
Parameter | Description | Example |
---|---|---|
curl | The CURL session handle. | $curl |
Value | The bitmask of allowed authentication methods. 15 |
Result
Returns "OK" on success.
Description
Sets which authentication methods are used.Pass a number as parameter, which is set to a bitmask, to tell libcurl which authentication method(s) you want it to use for your proxy authentication. If more than one bit is set, libcurl will first query the site to see what authentication methods it supports and then pick the best one you allow it to use. For some methods, this will induce an extra network round-trip. Set the actual name and password with the CURL.SetOptionProxyUsername option. The bitmask can be constructed by or'ing together the bits listed above for the CURL.SetOptionHTTPAuth option. As of this writing, only Basic, Digest and NTLM work.
See also PROXYAUTH option in CURL manual.
See also
- CURL.SetOptionPreQuote
- CURL.SetOptionProtocols
- CURL.SetOptionProxy
- CURL.SetOptionProxyCAInfo
- CURL.SetOptionProxyCAPath
- CURL.SetOptionProxyHeader
- CURL.SetOptionProxyPort
- CURL.SetOptionProxySSLKey
- CURL.SetOptionProxyUsername
- CURL.SetOptionSocks5Auth
Blog Entries
Created 18th August 2014, last changed 18th August 2014