2023-01-02 20:51:48 +08:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 06:12:03 +08:00
|
|
|
SPDX-License-Identifier: curl
|
2016-11-16 06:44:58 +08:00
|
|
|
Long: disable-eprt
|
|
|
|
Help: Inhibit using EPRT or LPRT
|
|
|
|
Protocols: FTP
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: ftp
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --disable-eprt ftp://example.com/
|
2021-09-28 17:50:07 +08:00
|
|
|
Added: 7.10.5
|
2021-11-15 22:58:20 +08:00
|
|
|
See-also: disable-epsv ftp-port
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: boolean
|
2016-11-16 06:44:58 +08:00
|
|
|
---
|
|
|
|
Tell curl to disable the use of the EPRT and LPRT commands when doing active
|
2023-09-08 20:32:29 +08:00
|
|
|
FTP transfers. Curl normally first attempts to use EPRT before using PORT, but
|
|
|
|
with this option, it uses PORT right away. EPRT is an extension to the
|
|
|
|
original FTP protocol, and does not work on all servers, but enables more
|
|
|
|
functionality in a better way than the traditional PORT command.
|
2016-11-16 06:44:58 +08:00
|
|
|
|
|
|
|
--eprt can be used to explicitly enable EPRT again and --no-eprt is an alias
|
|
|
|
for --disable-eprt.
|
|
|
|
|
2023-09-08 20:32:29 +08:00
|
|
|
If the server is accessed using IPv6, this option has no effect as EPRT is
|
|
|
|
necessary then.
|
2016-11-16 06:44:58 +08:00
|
|
|
|
|
|
|
Disabling EPRT only changes the active behavior. If you want to switch to
|
|
|
|
passive mode you need to not use --ftp-port or force it with --ftp-pasv.
|