CURL.SetOptionFTPAccount
------------------------

Sets the FTP account name.

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

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

**MBS**( **"CURL.SetOptionFTPAccount";** /\* Sets the FTP account name. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**; /\* The account name.e.g. "test" \*/   
**$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 account name. | "test" |  |
| 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

Sets the FTP account name.  
When an FTP server asks for "account data" after user name and password has been provided, this data is sent off using the ACCT command.  
See also [FTP\_ACCOUNT](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_ACCOUNT.html) option in CURL manual.

### See also

- [CURL.SetOptionFTPPort](CURLSetOptionFTPPort.md)
- [CURL.SetOptionFTPSSLAuth](CURLSetOptionFTPSSLAuth.md)
- [CURL.SetOptionFTPUseEPRT](CURLSetOptionFTPUseEPRT.md)
- [CURL.SetOptionFTPUseEPSV](CURLSetOptionFTPUseEPSV.md)
- [CURL.SetOptionFTPUsePret](CURLSetOptionFTPUsePret.md)
- [CURL.SetOptionTCPKeepCount](CURLSetOptionTCPKeepCount.md)

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

  
[CURL.SetOptionExpect100TimeoutMS](CURLSetOptionExpect100TimeoutMS.md) - [CURL.SetOptionFTPAlternativeToUser](CURLSetOptionFTPAlternativeToUser.md)

[HTML Version](CURLSetOptionFTPAccount.shtml)