curl-curl/docs/cmdline-opts/ftp-pasv.md
Dan Fandrich 5f805eec11 tool_getparam: fix --ftp-pasv
This boolean option was moved to the wrong handling function. Make it
an ARG_NONE and move it to the correct handler and add a test to
verify that the option works.

Follow-up to 698491f44

Reported-by: fjaell on github
Fixes #17545
Closes #17547
2025-06-06 14:40:14 -07:00

691 B

c SPDX-License-Identifier Long Help Protocols Added Category Multi Mutexed See-also Example
Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. curl ftp-pasv Send PASV/EPSV instead of PORT FTP 7.11.0 ftp mutex ftp-port
disable-epsv
--ftp-pasv ftp://example.com/

--ftp-pasv

Use passive mode for the data connection. Passive is the internal default behavior, but using this option can be used to override a previous --ftp-port option.

Reversing an enforced passive really is not doable but you must then instead enforce the correct --ftp-port again.

Passive mode means that curl tries the EPSV command first and then PASV, unless --disable-epsv is used.