Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
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
MBS(
"CURL.SetOptionProxyAuth"; /* Sets which authentication methods are used. */
$curl; /* The CURL session handle. */
$Value) /* The bitmask of allowed authentication methods. 15 */
Less
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
Blog Entries
Created 18th August 2014, last changed 18th August 2014
CURL.SetOptionProxy
-
CURL.SetOptionProxyCAInfo