curl_url_set.md: document HOST handling when URL is parsed

When a full URL is set (parsed), the hostname component is stored URL
decoded (with default zero flags).

While perhaps surprising and inconsistent, the API has done this for
quite some time already and changigtn this now would break existing
behaviour.

Fixes #14942
Reported-by: Venkat Krishna R
Closes #14946
This commit is contained in:
Daniel Stenberg 2024-09-17 18:03:30 +02:00
parent 6d0a48e586
commit c0a9db8424
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -91,6 +91,8 @@ it does not recognize.
Unless *CURLU_NO_AUTHORITY* is set, a blank hostname is not allowed in
the URL.
When a full URL is set (parsed), the hostname component is stored URL decoded.
## CURLUPART_SCHEME
Scheme cannot be URL decoded on set. libcurl only accepts setting schemes up