docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
---
|
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 21:20:36 +08:00
|
|
|
Long: ftp-port
|
|
|
|
Arg: <address>
|
|
|
|
Help: Use PORT instead of PASV
|
|
|
|
Short: P
|
|
|
|
Protocols: FTP
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: ftp
|
2021-09-28 17:50:07 +08:00
|
|
|
Added: 4.0
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: single
|
docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
See-also:
|
|
|
|
- ftp-pasv
|
|
|
|
- disable-eprt
|
|
|
|
Example:
|
|
|
|
- -P - ftp:/example.com
|
|
|
|
- -P eth0 ftp:/example.com
|
|
|
|
- -P 192.168.0.2 ftp:/example.com
|
2016-11-16 21:20:36 +08:00
|
|
|
---
|
docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
|
|
|
|
# `--ftp-port`
|
|
|
|
|
2016-11-16 21:20:36 +08:00
|
|
|
Reverses the default initiator/listener roles when connecting with FTP. This
|
2024-03-12 17:34:58 +08:00
|
|
|
option makes curl use active mode. curl then commands the server to connect
|
|
|
|
back to the client's specified address and port, while passive mode asks the
|
|
|
|
server to setup an IP address and port for it to connect to. \<address\>
|
|
|
|
should be one of:
|
2024-01-09 17:36:14 +08:00
|
|
|
|
|
|
|
## interface
|
|
|
|
e.g. **eth0** to specify which interface's IP address you want to use (Unix only)
|
|
|
|
|
|
|
|
## IP address
|
|
|
|
e.g. **192.168.10.1** to specify the exact IP address
|
|
|
|
|
2024-02-27 17:35:28 +08:00
|
|
|
## hostname
|
2024-01-09 17:36:14 +08:00
|
|
|
e.g. **my.host.domain** to specify the machine
|
|
|
|
|
|
|
|
## -
|
2016-11-16 21:20:36 +08:00
|
|
|
make curl pick the same IP address that is already used for the control
|
2024-01-09 17:36:14 +08:00
|
|
|
connection. This is the recommended choice.
|
|
|
|
|
|
|
|
##
|
2016-11-16 21:20:36 +08:00
|
|
|
|
2022-10-18 16:39:43 +08:00
|
|
|
Disable the use of PORT with --ftp-pasv. Disable the attempt to use the EPRT
|
|
|
|
command instead of PORT by using --disable-eprt. EPRT is really PORT++.
|
2016-11-16 21:20:36 +08:00
|
|
|
|
docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
You can also append ":[start]-[end]" to the right of the address, to tell
|
2021-09-28 16:30:59 +08:00
|
|
|
curl what TCP port range to use. That means you specify a port range, from a
|
|
|
|
lower to a higher number. A single number works as well, but do note that it
|
|
|
|
increases the risk of failure since the port may not be available.
|
|
|
|
(Added in 7.19.5)
|