xref: /aosp_15_r20/external/curl/docs/cmdline-opts/disable-epsv.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1---
2c: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3SPDX-License-Identifier: curl
4Long: disable-epsv
5Help: Inhibit using EPSV
6Protocols: FTP
7Category: ftp
8Added: 7.9.2
9Multi: boolean
10See-also:
11  - disable-eprt
12  - ftp-port
13Example:
14  - --disable-epsv ftp://example.com/
15---
16
17# `--disable-epsv`
18
19Disable the use of the EPSV command when doing passive FTP transfers. Curl
20normally first attempts to use EPSV before PASV, but with this option, it does
21not try EPSV.
22
23--epsv can be used to explicitly enable EPSV again and --no-epsv is an alias
24for --disable-epsv.
25
26If the server is an IPv6 host, this option has no effect as EPSV is necessary
27then.
28
29Disabling EPSV only changes the passive behavior. If you want to switch to
30active mode you need to use --ftp-port.
31