xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. |
| 2 | SPDX-License-Identifier: curl |
| 3 | Long: disable-eprt |
| 4 | Help: Inhibit using EPRT or LPRT |
| 5 | Protocols: FTP |
| 6 | Category: ftp |
| 7 | Example: --disable-eprt ftp://example.com/ |
| 8 | Added: 7.10.5 |
| 9 | See-also: disable-epsv ftp-port |
| 10 | Multi: boolean |
| 11 | --- |
| 12 | Tell curl to disable the use of the EPRT and LPRT commands when doing active |
| 13 | FTP transfers. Curl will normally always first attempt to use EPRT, then LPRT |
| 14 | before using PORT, but with this option, it will use PORT right away. EPRT and |
| 15 | LPRT are extensions to the original FTP protocol, and may not work on all |
| 16 | servers, but they enable more functionality in a better way than the |
| 17 | traditional PORT command. |
| 18 | |
| 19 | --eprt can be used to explicitly enable EPRT again and --no-eprt is an alias |
| 20 | for --disable-eprt. |
| 21 | |
| 22 | If the server is accessed using IPv6, this option will have no effect as EPRT |
| 23 | is necessary then. |
| 24 | |
| 25 | Disabling EPRT only changes the active behavior. If you want to switch to |
| 26 | passive mode you need to not use --ftp-port or force it with --ftp-pasv. |