CURL.SetOptionProxyUsername
---------------------------

The user name to use for the transfer while connecting to Proxy.

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

MBS( "CURL.SetOptionProxyUsername"; curl; Value { ; Encoding } ) 

**MBS**( **"CURL.SetOptionProxyUsername";** /\* The user name to use for the transfer while connecting to Proxy. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**; /\* The user name.e.g. "testuser" \*/   
**$Encoding**) /\* Optional; The text encoding for text parameter.   
Default is UTF-8.e.g. "UTF8" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| curl | The CURL session handle. | $curl |  |
| Value | The user name. | "testuser" |  |
| Encoding | The text encoding for text parameter.    Default is UTF-8.   Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the [FAQ](https://www.monkeybreadsoftware.com/filemaker/faq.shtml). | "UTF8" | Optional |

### Result

Returns "OK" on success.

### Description

The user name to use for the transfer while connecting to Proxy.  
In order to specify the password to be used in conjunction with the user name use the [CURL.SetOptionProxyPassword](CURLSetOptionProxyPassword.md) option.  
See also [PROXYUSERNAME](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYUSERNAME.html) option in CURL manual.

### See also

- [CURL.SetOptionProxyAuth](CURLSetOptionProxyAuth.md)
- [CURL.SetOptionProxyIssuerCert](CURLSetOptionProxyIssuerCert.md)
- [CURL.SetOptionProxyPassword](CURLSetOptionProxyPassword.md)
- [CURL.SetOptionProxyServiceName](CURLSetOptionProxyServiceName.md)
- [CURL.SetOptionProxySSLCertType](CURLSetOptionProxySSLCertType.md)
- [CURL.SetOptionProxySSLKeyType](CURLSetOptionProxySSLKeyType.md)
- [CURL.SetOptionProxyTLSAuthUsername](CURLSetOptionProxyTLSAuthUsername.md)
- [CURL.SetOptionProxyTransferMode](CURLSetOptionProxyTransferMode.md)
- [CURL.SetOptionTLSAuthUsername](CURLSetOptionTLSAuthUsername.md)
- [CURL.SetOptionUserName](CURLSetOptionUserName.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)
- [Comparing Base Elements Plugin to MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2017-10-24/Comparing_Base_Elements_Plugin/monkeybreadsoftware_blog_filemaker)

Created 18th August 2014 , last changed 5th July 2015

  
[CURL.SetOptionProxyType](CURLSetOptionProxyType.md) - [CURL.SetOptionPut](CURLSetOptionPut.md)

[HTML Version](CURLSetOptionProxyUsername.shtml)