xref: /aosp_15_r20/external/curl/docs/cmdline-opts/disable-eprt.md (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker---
2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl
4*6236dae4SAndroid Build Coastguard WorkerLong: disable-eprt
5*6236dae4SAndroid Build Coastguard WorkerHelp: Inhibit using EPRT or LPRT
6*6236dae4SAndroid Build Coastguard WorkerProtocols: FTP
7*6236dae4SAndroid Build Coastguard WorkerCategory: ftp
8*6236dae4SAndroid Build Coastguard WorkerAdded: 7.10.5
9*6236dae4SAndroid Build Coastguard WorkerMulti: boolean
10*6236dae4SAndroid Build Coastguard WorkerSee-also:
11*6236dae4SAndroid Build Coastguard Worker  - disable-epsv
12*6236dae4SAndroid Build Coastguard Worker  - ftp-port
13*6236dae4SAndroid Build Coastguard WorkerExample:
14*6236dae4SAndroid Build Coastguard Worker  - --disable-eprt ftp://example.com/
15*6236dae4SAndroid Build Coastguard Worker---
16*6236dae4SAndroid Build Coastguard Worker
17*6236dae4SAndroid Build Coastguard Worker# `--disable-eprt`
18*6236dae4SAndroid Build Coastguard Worker
19*6236dae4SAndroid Build Coastguard WorkerDisable the use of the EPRT and LPRT commands when doing active FTP transfers.
20*6236dae4SAndroid Build Coastguard WorkerCurl normally first attempts to use EPRT before using PORT, but with this
21*6236dae4SAndroid Build Coastguard Workeroption, it uses PORT right away. EPRT is an extension to the original FTP
22*6236dae4SAndroid Build Coastguard Workerprotocol, and does not work on all servers, but enables more functionality in
23*6236dae4SAndroid Build Coastguard Workera better way than the traditional PORT command.
24*6236dae4SAndroid Build Coastguard Worker
25*6236dae4SAndroid Build Coastguard Worker--eprt can be used to explicitly enable EPRT again and --no-eprt is an alias
26*6236dae4SAndroid Build Coastguard Workerfor --disable-eprt.
27*6236dae4SAndroid Build Coastguard Worker
28*6236dae4SAndroid Build Coastguard WorkerIf the server is accessed using IPv6, this option has no effect as EPRT is
29*6236dae4SAndroid Build Coastguard Workernecessary then.
30*6236dae4SAndroid Build Coastguard Worker
31*6236dae4SAndroid Build Coastguard WorkerDisabling EPRT only changes the active behavior. If you want to switch to
32*6236dae4SAndroid Build Coastguard Workerpassive mode you need to not use --ftp-port or force it with --ftp-pasv.
33