curl/docs/libcurl
Daniel Stenberg 9a8564a920
urlapi: URL decode percent-encoded host names
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 percent 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
Closes #7834
2021-10-11 17:04:14 +02:00
..
opts CURLOPT_HTTPHEADER.3: add descripion for specific headers 2021-10-08 15:15:30 +02:00
.gitignore gitignore: Ignore man page dist files 2017-03-07 23:27:31 +01:00
ABI.md docs: correct spelling errors and a broken link 2021-07-18 21:14:36 +02:00
CMakeLists.txt curl.se: new home 2020-11-04 23:59:47 +01:00
curl_easy_cleanup.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_easy_duphandle.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_easy_escape.3 docs: document the 8MB input string limit 2020-11-09 17:28:45 +01:00
curl_easy_getinfo.3 http: add support to read and store the referrer header 2021-02-19 13:57:19 +00:00
curl_easy_init.3 language: s/behaviour/behavior/g 2021-01-02 23:35:59 +01:00
curl_easy_option_by_id.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_easy_option_by_name.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_easy_option_next.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_easy_pause.3 curl_easy_pause.3: add multiplexed pause effects 2020-12-22 23:08:03 +01:00
curl_easy_perform.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_easy_recv.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_easy_reset.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_easy_send.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_easy_setopt.3 CURLOPT_MAXLIFETIME_CONN: maximum allowed lifetime for conn reuse 2021-10-06 14:38:59 +02:00
curl_easy_strerror.3 urlapi: add curl_url_strerror() 2021-09-27 08:28:46 +02:00
curl_easy_unescape.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_easy_upkeep.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_escape.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_formadd.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_formfree.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_formget.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_free.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_getdate.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_getenv.3 language: s/behaviour/behavior/g 2021-01-02 23:35:59 +01:00
curl_global_cleanup.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_global_init_mem.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_global_init.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_global_sslset.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_mime_addpart.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_mime_data_cb.3 docs: fix incorrect argument name reference 2021-07-13 22:04:05 +02:00
curl_mime_data.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_mime_encoder.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_mime_filedata.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_mime_filename.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_mime_free.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_mime_headers.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_mime_init.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_mime_name.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_mime_subparts.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_mime_type.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_mprintf.3 msnprintf: return number of printed characters excluding null byte 2021-07-08 10:05:39 +02:00
curl_multi_add_handle.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_multi_assign.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_multi_cleanup.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_multi_fdset.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_multi_info_read.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_multi_init.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_multi_perform.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_multi_poll.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_multi_remove_handle.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_multi_setopt.3 language: s/behaviour/behavior/g 2021-01-02 23:35:59 +01:00
curl_multi_socket_action.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_multi_socket_all.3 The inital early embryos to describe the curl_multi_socket() API. Committed 2005-12-22 15:11:11 +00:00
curl_multi_socket.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_multi_strerror.3 urlapi: add curl_url_strerror() 2021-09-27 08:28:46 +02:00
curl_multi_timeout.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_multi_wait.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_multi_wakeup.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_share_cleanup.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_share_init.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_share_setopt.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_share_strerror.3 urlapi: add curl_url_strerror() 2021-09-27 08:28:46 +02:00
curl_slist_append.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_slist_free_all.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_strequal.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
curl_strnequal.3 prepend the man3 dir to the file name to work better. 2004-04-02 11:04:34 +00:00
curl_unescape.3 curl.se: new home 2020-11-04 23:59:47 +01:00
curl_url_cleanup.3 copyright: update copyright year ranges to 2021 2021-03-27 23:00:14 +01:00
curl_url_dup.3 copyright: update copyright year ranges to 2021 2021-03-27 23:00:14 +01:00
curl_url_get.3 urlapi: URL decode percent-encoded host names 2021-10-11 17:04:14 +02:00
curl_url_set.3 urlapi: add curl_url_strerror() 2021-09-27 08:28:46 +02:00
curl_url_strerror.3 urlapi: add curl_url_strerror() 2021-09-27 08:28:46 +02:00
curl_url.3 urlapi: add curl_url_strerror() 2021-09-27 08:28:46 +02:00
curl_version_info.3 version: add gsasl_version to curl_version_info_data 2021-04-22 18:28:28 -04:00
curl_version.3 curl.se: new home 2020-11-04 23:59:47 +01:00
libcurl-easy.3 curl.se: new home 2020-11-04 23:59:47 +01:00
libcurl-env.3 copyright: update copyright year ranges to 2021 2021-03-27 23:00:14 +01:00
libcurl-errors.3 urlapi: add curl_url_strerror() 2021-09-27 08:28:46 +02:00
libcurl-multi.3 man pages: remove trailing whitespaces 2021-08-21 16:44:03 +02:00
libcurl-security.3 libcurl-security.3: mention file descriptors and forks 2021-06-17 17:11:40 +02:00
libcurl-share.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
libcurl-thread.3 curl.se: new home 2020-11-04 23:59:47 +01:00
libcurl-tutorial.3 copyright: fix year ranges 2020-11-05 08:22:10 +01:00
libcurl-url.3 urlapi: add curl_url_strerror() 2021-09-27 08:28:46 +02:00
libcurl.3 libcurl.3: mention the URL API 2021-05-06 16:54:05 +02:00
libcurl.m4 curl.se: new home 2020-11-04 23:59:47 +01:00
Makefile.am curl.se: new home 2020-11-04 23:59:47 +01:00
Makefile.inc urlapi: add curl_url_strerror() 2021-09-27 08:28:46 +02:00
mksymbolsmanpage.pl mksymbolsmanpage.pl: Fix showing symbol's last used version 2021-08-22 01:12:26 -04:00
symbols-in-versions CURLOPT_MAXLIFETIME_CONN: maximum allowed lifetime for conn reuse 2021-10-06 14:38:59 +02:00
symbols.pl curl.se: new home 2020-11-04 23:59:47 +01:00