summaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/cookie.d
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-10-08 20:12:26 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-10-11 08:25:25 +0200
commit601a836fa5c0f9d7cc27c55b6e8352ed9004b193 (patch)
treeebfc3b77a636822d4d5805553e59c2770d6c3dc2 /docs/cmdline-opts/cookie.d
parentab1671cafefcaf19ff6ac00a6cc7b36dfe16adcd (diff)
downloadcurl-bagder/url-decode-host.tar.gz
urlapi: URL decode percent-encoded host namesbagder/url-decode-host
The host name is stored decoded and can be encoded when used to extract the full URL. By default when extracting the URL, the host name will not be URL encoded to work as similar as possible as before. When not URL encoding the host name, the '%' character will however still be encoded. Getting the URL with the CURLU_URLENCODE flag set will encode the host name part. As a bonus, setting the host name part with curl_url_set() no longer accepts a name that contains space, CR or LF. Test 1560 has been extended to verify percent encodings. Reported-by: Noam Moshe Reported-by: Sharon Brizinov Reported-by: Raul Onitza-Klugman Reported-by: Kirill Efimov Fixes #7830
Diffstat (limited to 'docs/cmdline-opts/cookie.d')
0 files changed, 0 insertions, 0 deletions