CURL.SetOptionFTPUseEPRT
------------------------

Whether to use EPRT command.

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

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

**MBS**( **"CURL.SetOptionFTPUseEPRT";** /\* Whether to use EPRT command. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* Whether to use EPRT command: 1 for EPRT, 0 for no EPRT.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | Whether to use EPRT command: 1 for EPRT, 0 for no EPRT. | 1 |

### Result

Returns "OK" on success.

### Description

Whether to use EPRT command.  
If the value is 1, it tells curl to use the EPRT (and LPRT) command when doing active FTP downloads (which is enabled by [CURL.SetOptionFTPPort](CURLSetOptionFTPPort.md)). Using EPRT means that it will first attempt to use EPRT and then LPRT before using PORT, but if you pass zero to this option, it will not try using EPRT or LPRT, only plain PORT.  
  
If the server is an IPv6 host, this option will have no effect.  
See also [FTP\_USE\_EPRT](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_EPRT.html) option in CURL manual.

### See also

- [CURL.SetOptionFTPAccount](CURLSetOptionFTPAccount.md)
- [CURL.SetOptionFTPPort](CURLSetOptionFTPPort.md)
- [CURL.SetOptionFTPSSLAuth](CURLSetOptionFTPSSLAuth.md)
- [CURL.SetOptionFTPUseEPSV](CURLSetOptionFTPUseEPSV.md)
- [CURL.SetOptionFTPUsePret](CURLSetOptionFTPUsePret.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.SetOptionFTPSkipPasvIP](CURLSetOptionFTPSkipPasvIP.md) - [CURL.SetOptionFTPUseEPSV](CURLSetOptionFTPUseEPSV.md)

[HTML Version](CURLSetOptionFTPUseEPRT.shtml)