xref: /curl/docs/cmdline-opts/disable-eprt.md (revision e7219c2b)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: disable-eprt
5Help: Inhibit using EPRT or LPRT
6Protocols: FTP
7Category: ftp
8Added: 7.10.5
9Multi: boolean
10See-also:
11  - disable-epsv
12  - ftp-port
13Example:
14  - --disable-eprt ftp://example.com/
15---
16
17# `--disable-eprt`
18
19Disable the use of the EPRT and LPRT commands when doing active FTP transfers.
20Curl normally first attempts to use EPRT before using PORT, but with this
21option, it uses PORT right away. EPRT is an extension to the original FTP
22protocol, and does not work on all servers, but enables more functionality in
23a better way than the traditional PORT command.
24
25--eprt can be used to explicitly enable EPRT again and --no-eprt is an alias
26for --disable-eprt.
27
28If the server is accessed using IPv6, this option has no effect as EPRT is
29necessary then.
30
31Disabling EPRT only changes the active behavior. If you want to switch to
32passive mode you need to not use --ftp-port or force it with --ftp-pasv.
33