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.
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