CURL.SetOptionTLSAuthUsername
-----------------------------

Sets the TSL authentication user name.

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

MBS( "CURL.SetOptionTLSAuthUsername"; curl; UserName { ; Encoding } ) 

**MBS**( **"CURL.SetOptionTLSAuthUsername";** /\* Sets the TSL authentication user name. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$UserName**; /\* The user name. \*/   
**$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 |  |
| UserName | The user name. | $Username |  |
| 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 or error.

### Description

Sets the TSL authentication user name.  
Please also set OptionTLSAuthType.  
### See also

- [CURL.SetOptionProxyTLSAuthUsername](CURLSetOptionProxyTLSAuthUsername.md)
- [CURL.SetOptionProxyUsername](CURLSetOptionProxyUsername.md)
- [CURL.SetOptionTLSAuthPassword](CURLSetOptionTLSAuthPassword.md)
- [CURL.SetOptionTLSAuthType](CURLSetOptionTLSAuthType.md)

### Release notes

- **Version 16.4**
    - Deprecated [CURL.SetOptionProxyTLSAuthPassword](https://www.mbsplugins.eu/CURLSetOptionProxyTLSAuthPassword.shtml), [CURL.SetOptionProxyTLSAuthType](https://www.mbsplugins.eu/CURLSetOptionProxyTLSAuthType.shtml), [CURL.SetOptionProxyTLSAuthUsername](https://www.mbsplugins.eu/CURLSetOptionProxyTLSAuthUsername.shtml), [CURL.SetOptionTLSAuthPassword](https://www.mbsplugins.eu/CURLSetOptionTLSAuthPassword.shtml), [CURL.SetOptionTLSAuthType](https://www.mbsplugins.eu/CURLSetOptionTLSAuthType.shtml) and [CURL.SetOptionTLSAuthUsername](https://www.mbsplugins.eu/CURLSetOptionTLSAuthUsername.shtml) since they are deprecated in CURL library.

### Blog Entries

- [MBS FileMaker Plugin, version 16.4pr4](https://www.mbsplugins.de/archive/2026-09-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

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

  
[CURL.SetOptionTLSAuthType](CURLSetOptionTLSAuthType.md) - [CURL.SetOptionTelnetOptions](CURLSetOptionTelnetOptions.md)

[HTML Version](CURLSetOptionTLSAuthUsername.shtml)