CURL.SetOptionProxyAuth
-----------------------

Sets which authentication methods are used.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [2.5](newinversion25.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.SetOptionProxyAuth"; curl; Value ) 

**MBS**( **"CURL.SetOptionProxyAuth";** /\* Sets which authentication methods are used. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* The bitmask of allowed authentication methods. 15 \*/ 

### 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](CURLSetOptionProxyUsername.md) option. The bitmask can be constructed by or'ing together the bits listed above for the [CURL.SetOptionHTTPAuth](CURLSetOptionHTTPAuth.md) option. As of this writing, only Basic, Digest and NTLM work.  
See also [PROXYAUTH](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYAUTH.html) option in CURL manual.

### See also

- [CURL.SetOptionPreQuote](CURLSetOptionPreQuote.md)
- [CURL.SetOptionProtocols](CURLSetOptionProtocols.md)
- [CURL.SetOptionProxy](CURLSetOptionProxy.md)
- [CURL.SetOptionProxyCAInfo](CURLSetOptionProxyCAInfo.md)
- [CURL.SetOptionProxyCAPath](CURLSetOptionProxyCAPath.md)
- [CURL.SetOptionProxyHeader](CURLSetOptionProxyHeader.md)
- [CURL.SetOptionProxyPort](CURLSetOptionProxyPort.md)
- [CURL.SetOptionProxySSLKey](CURLSetOptionProxySSLKey.md)
- [CURL.SetOptionProxyUsername](CURLSetOptionProxyUsername.md)
- [CURL.SetOptionSocks5Auth](CURLSetOptionSocks5Auth.md)

### Blog Entries

- [Translating Insert from URL options for CURL to MBS Plugin calls](https://www.mbsplugins.de/archive/2020-12-14/Translating_Insert_from_URL_op/monkeybreadsoftware_blog_filemaker)

Created 18th August 2014 , last changed 18th August 2014

  
[CURL.SetOptionProxy](CURLSetOptionProxy.md) - [CURL.SetOptionProxyCAInfo](CURLSetOptionProxyCAInfo.md)

[HTML Version](CURLSetOptionProxyAuth.shtml)