]> granicus.if.org Git - curl/commitdiff
docs: disambiguate CURLUPART_HOST is for host name (ie no port)
authorJay Satiro <raysatiro@yahoo.com>
Wed, 25 Sep 2019 23:12:27 +0000 (19:12 -0400)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 28 Sep 2019 16:13:33 +0000 (18:13 +0200)
Closes #4424

docs/libcurl/curl_url_get.3
docs/libcurl/curl_url_set.3

index d5445e3c8f5d64c9b726bf62190b4b259e7b5ff1..6afa5735dab4b24a6487e78fcb7ed21ecaf7ad57 100644 (file)
@@ -76,8 +76,9 @@ Scheme cannot be URL decoded on get.
 .IP CURLUPART_PASSWORD
 .IP CURLUPART_OPTIONS
 .IP CURLUPART_HOST
-If the host part is an IPv6 numeric address, the zoneid will not be part of
-the extracted host but is provided separately in \fICURLUPART_ZONEID\fP.
+The host name. If it is an IPv6 numeric address, the zoneid will not be part
+of it but is provided separately in \fICURLUPART_ZONEID\fP. IPv6 numerical
+addresses are returned within brackets ([]).
 .IP CURLUPART_ZONEID
 If the host name is a numeric IPv6 address, this field might also be set.
 .IP CURLUPART_PORT
index e2e2c1887de18bbc5aa89814568078faf19b24a9..a7667a35d4dda2116859604c8950e133499412c6 100644 (file)
@@ -60,8 +60,9 @@ Scheme cannot be URL decoded on set.
 .IP CURLUPART_PASSWORD
 .IP CURLUPART_OPTIONS
 .IP CURLUPART_HOST
-The host name can use IDNA. The string must then be encoded as your locale
-says or UTF-8 (when winidn is used).
+The host name. If it is IDNA the string must then be encoded as your locale
+says or UTF-8 (when WinIDN is used). If it is a bracketed IPv6 numeric address
+it may contain a zone id (or you can use CURLUPART_ZONEID).
 .IP CURLUPART_ZONEID
 If the host name is a numeric IPv6 address, this field can also be set.
 .IP CURLUPART_PORT