diff options
author | Daniel Stenberg <daniel@haxx.se> | 2009-06-29 20:46:01 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2009-06-29 20:46:01 +0000 |
commit | 4f551259ddf79163660fdf44ec57b6ed2f409e50 (patch) | |
tree | 42889b2d80a2a39bcbfe8aeef3cd9829de27a6d8 /docs | |
parent | 9cb68c6e32f29ad5ba00195a164371006e26467a (diff) |
- Markus Koetter made CURLOPT_FTPPORT (and curl's -P/--ftpport) support a port
range if given colon-separated after the host name/address part. Like
"192.168.0.1:2000-10000"
Diffstat (limited to 'docs')
-rw-r--r-- | docs/curl.1 | 6 | ||||
-rw-r--r-- | docs/libcurl/curl_easy_setopt.3 | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/docs/curl.1 b/docs/curl.1 index 9748d5bec..bdd293e07 100644 --- a/docs/curl.1 +++ b/docs/curl.1 @@ -953,6 +953,12 @@ connection If this option is used several times, the last one will be used. Disable the use of PORT with \fI--ftp-pasv\fP. Disable the attempt to use the EPRT command instead of PORT by using \fI--disable-eprt\fP. EPRT is really PORT++. + +Starting in 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 not that it increases the risk of failure since the port may not be +available. .IP "-q" If used as the first parameter on the command line, the \fIcurlrc\fP config file will not be read and used. See the \fI-K/--config\fP for details on the diff --git a/docs/libcurl/curl_easy_setopt.3 b/docs/libcurl/curl_easy_setopt.3 index eee750b57..e1ffeade1 100644 --- a/docs/libcurl/curl_easy_setopt.3 +++ b/docs/libcurl/curl_easy_setopt.3 @@ -1070,6 +1070,12 @@ be a plain IP address, a host name, a network interface name (under Unix) or just a '-' symbol to let the library use your system's default IP address. Default FTP operations are passive, and thus won't use PORT. +Starting in 7.19.5, you can append \&":[start]-[end]\&" to the right of the +address, to tell libcurl 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 not that it increases the risk of failure since the port may not be +available. + You disable PORT again and go back to using the passive version by setting this option to NULL. .IP CURLOPT_QUOTE |