mirror of
https://github.com/curl/curl.git
synced 2025-03-01 15:15:34 +08:00
parent
7f97d7053e
commit
b2175acc76
@ -30,6 +30,9 @@ CURLOPT_PORT \- remote port number to connect to
|
||||
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PORT, long number);
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
We discourage using this option since it's scope is not obvious and hard to
|
||||
predict. Set the preferred port number in the URL instead.
|
||||
|
||||
This option sets \fInumber\fP to be the remote port number to connect to,
|
||||
instead of the one specified in the URL or the default port for the used
|
||||
protocol.
|
||||
@ -40,7 +43,8 @@ application to override that.
|
||||
While this option accepts a 'long', a port number is usually a 16 bit number
|
||||
and therefore using a port number over 65535 will cause a runtime error.
|
||||
.SH DEFAULT
|
||||
By default this is 0 which makes it not used.
|
||||
By default this is 0 which makes it not used. This also makes port number zero
|
||||
impossible to set with this API.
|
||||
.SH PROTOCOLS
|
||||
Used for all protocols that speak to a port number.
|
||||
.SH EXAMPLE
|
||||
|
Loading…
Reference in New Issue
Block a user