CURL.SetOptionFTPAlternativeToUser
----------------------------------

Whether to use alternative USER command.

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

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

**MBS**( **"CURL.SetOptionFTPAlternativeToUser";** /\* Whether to use alternative USER command. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**; /\* Whether to use alternative user command.e.g. 1 \*/   
**$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 | Whether to use alternative user command. | 1 |  |
| 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

Whether to use alternative USER command.  
Pass a string which will be used to authenticate if the usual FTP "USER user" and "PASS password" negotiation fails. This is currently only known to be required when connecting to Tumbleweed's Secure Transport FTPS server using client certificates for authentication.  
See also [FTP\_ALTERNATIVE\_TO\_USER](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_ALTERNATIVE_TO_USER.html) option in CURL manual.

### 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 5th July 2015

  
[CURL.SetOptionFTPAccount](CURLSetOptionFTPAccount.md) - [CURL.SetOptionFTPCreateMissingDirs](CURLSetOptionFTPCreateMissingDirs.md)

[HTML Version](CURLSetOptionFTPAlternativeToUser.shtml)