xref: /aosp_15_r20/external/curl/docs/cmdline-opts/ftp-pasv.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: ftp-pasv
5*6236dae4SAndroid Build Coastguard WorkerHelp: Send PASV/EPSV instead of PORT
6*6236dae4SAndroid Build Coastguard WorkerProtocols: FTP
7*6236dae4SAndroid Build Coastguard WorkerAdded: 7.11.0
8*6236dae4SAndroid Build Coastguard WorkerCategory: ftp
9*6236dae4SAndroid Build Coastguard WorkerMulti: boolean
10*6236dae4SAndroid Build Coastguard WorkerSee-also:
11*6236dae4SAndroid Build Coastguard Worker  - disable-epsv
12*6236dae4SAndroid Build Coastguard WorkerExample:
13*6236dae4SAndroid Build Coastguard Worker  - --ftp-pasv ftp://example.com/
14*6236dae4SAndroid Build Coastguard Worker---
15*6236dae4SAndroid Build Coastguard Worker
16*6236dae4SAndroid Build Coastguard Worker# `--ftp-pasv`
17*6236dae4SAndroid Build Coastguard Worker
18*6236dae4SAndroid Build Coastguard WorkerUse passive mode for the data connection. Passive is the internal default
19*6236dae4SAndroid Build Coastguard Workerbehavior, but using this option can be used to override a previous --ftp-port
20*6236dae4SAndroid Build Coastguard Workeroption.
21*6236dae4SAndroid Build Coastguard Worker
22*6236dae4SAndroid Build Coastguard WorkerReversing an enforced passive really is not doable but you must then instead
23*6236dae4SAndroid Build Coastguard Workerenforce the correct --ftp-port again.
24*6236dae4SAndroid Build Coastguard Worker
25*6236dae4SAndroid Build Coastguard WorkerPassive mode means that curl tries the EPSV command first and then PASV,
26*6236dae4SAndroid Build Coastguard Workerunless --disable-epsv is used.
27