]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_url_set.md: document HOST handling when URL is parsed
authorDaniel Stenberg <daniel@haxx.se>
Tue, 17 Sep 2024 16:03:30 +0000 (18:03 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 18 Sep 2024 13:02:45 +0000 (15:02 +0200)
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

docs/libcurl/curl_url_set.md

index 390f5249391f9531e6fb40a602fa01545cf8f46c..b041d756df7ef96d36899bd16394cfee4c636de3 100644 (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