summaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/ftp-port.d
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-11-16 14:20:36 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-11-16 15:15:57 +0100
commit342aa4797edfabba78755e798d23a5b6d288d50b (patch)
treec9607e88e05cef2f5084f6428151c5de52ee2fc4 /docs/cmdline-opts/ftp-port.d
parentc3c1e9618513d245861c35ec0c563ab71ce892bb (diff)
downloadgnurl-342aa4797edfabba78755e798d23a5b6d288d50b.tar.gz
gnurl-342aa4797edfabba78755e798d23a5b6d288d50b.tar.bz2
gnurl-342aa4797edfabba78755e798d23a5b6d288d50b.zip
cmdline-docs: more conversion
Diffstat (limited to 'docs/cmdline-opts/ftp-port.d')
-rw-r--r--docs/cmdline-opts/ftp-port.d32
1 files changed, 32 insertions, 0 deletions
diff --git a/docs/cmdline-opts/ftp-port.d b/docs/cmdline-opts/ftp-port.d
new file mode 100644
index 000000000..a852e9054
--- /dev/null
+++ b/docs/cmdline-opts/ftp-port.d
@@ -0,0 +1,32 @@
+Long: ftp-port
+Arg: <address>
+Help: Use PORT instead of PASV
+Short: P
+Protocols: FTP
+See-also: ftp-pasv disable-eprt
+---
+Reverses the default initiator/listener roles when connecting with FTP. This
+option makes curl use active mode. curl then tells 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:
+.RS
+.IP interface
+i.e "eth0" to specify which interface's IP address you want to use (Unix only)
+.IP "IP address"
+i.e "192.168.10.1" to specify the exact IP address
+.IP "host name"
+i.e "my.host.domain" to specify the machine
+.IP "-"
+make curl pick the same IP address that is already used for the control
+connection
+.RE
+
+If this option is used several times, the last one will be used. 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++.
+
+Since 7.19.5, you can append \&":[start]-[end]\&" to the right of the address,
+to tell 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.