CURL.SetOptionFTPUseEPSV
------------------------

Whether to use EPSV command.

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

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

**MBS**( **"CURL.SetOptionFTPUseEPSV";** /\* Whether to use EPSV command. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* Whether to use EPSV command or PASV. Pass 1 for EPSV or 0 for PASV.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | Whether to use EPSV command or PASV. Pass 1 for EPSV or 0 for PASV. | 1 |

### Result

Returns "OK" on success.

### Description

Whether to use EPSV command.  
If the value is 1, it tells curl to use the EPSV command when doing passive FTP downloads (which it always does by default). Using EPSV means that it will first attempt to use EPSV before using PASV, but if you pass zero to this option, it will not try using EPSV, only plain PASV.  
  
If the server is an IPv6 host, this option will have no effect as of 7.12.3.  
See also [FTP\_USE\_EPSV](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_EPSV.html) option in CURL manual.

### Examples

Enable EPSV:

 MBS ( "CURL.SetOptionFTPUseEPSV"; $curl ; 1 )  
Disable EPSV:

 MBS ( "CURL.SetOptionFTPUseEPSV"; $curl ; 0 )  
### See also

- [CURL.SetOptionFTPAccount](CURLSetOptionFTPAccount.md)
- [CURL.SetOptionFTPSSLAuth](CURLSetOptionFTPSSLAuth.md)
- [CURL.SetOptionFTPUseEPRT](CURLSetOptionFTPUseEPRT.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 22nd May 2020

  
[CURL.SetOptionFTPUseEPRT](CURLSetOptionFTPUseEPRT.md) - [CURL.SetOptionFTPUsePret](CURLSetOptionFTPUsePret.md)

[HTML Version](CURLSetOptionFTPUseEPSV.shtml)