curl/tests/libtest
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
..
.checksrc
.gitignore CURLOPT_PREREQFUNCTION: add new callback 2021-09-27 17:16:43 +02:00
chkdecimalpoint.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
chkhostname.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
CMakeLists.txt copyright: update copyright year ranges to 2021 2021-05-26 08:18:11 +02:00
first.c language: s/behaviour/behavior/g 2021-01-02 23:35:59 +01:00
lib500.c test500: adjust to work with hyper mode 2021-06-07 23:54:54 +02:00
lib501.c
lib502.c
lib503.c
lib504.c
lib505.c
lib506.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib507.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib508.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib509.c
lib510.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib511.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib512.c
lib513.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib514.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib515.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib516.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib517.c scripts/copyright: .muse is .lift now 2021-09-28 16:42:18 +02:00
lib518.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib519.c
lib520.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib521.c
lib523.c
lib524.c
lib525.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib526.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib533.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib537.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib539.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib540.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib541.c
lib542.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib543.c tests: reduce variable scopes 2021-02-10 16:47:09 +01:00
lib544.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib547.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib549.c
lib552.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib553.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib554.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib555.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib556.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib557.c msnprintf: return number of printed characters excluding null byte 2021-07-08 10:05:39 +02:00
lib558.c
lib559.c
lib560.c
lib562.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib564.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib566.c test566: adjust to work with hyper mode 2021-06-10 08:42:13 +02:00
lib567.c
lib568.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib569.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib570.c
lib571.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib572.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib573.c
lib574.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib575.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib576.c
lib578.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib579.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib582.c
lib583.c
lib586.c
lib589.c mime: make sure setting MIMEPOST to NULL resets properly 2021-01-15 08:33:27 +01:00
lib590.c
lib591.c
lib597.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib598.c
lib599.c test599: adjusted to work in hyper mode 2021-06-10 08:42:19 +02:00
lib643.c
lib650.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib651.c
lib652.c
lib653.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib654.c
lib655.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib658.c urlapi: add curl_url_strerror() 2021-09-27 08:28:46 +02:00
lib659.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib661.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib666.c
lib667.c
lib668.c
lib670.c
lib674.c urlapi: add curl_url_strerror() 2021-09-27 08:28:46 +02:00
lib676.c cookie: CURLOPT_COOKIEFILE set to NULL switches off cookies 2021-04-14 23:09:36 +02:00
lib677.c lib677: make it survive torture testing 2021-06-27 23:20:18 +02:00
lib678.c SSL: support in-memory CA certs for some backends 2021-05-05 02:29:16 -04:00
lib1156.c http: make 416 not fail with resume + CURLOPT_FAILONERRROR 2021-03-17 08:26:46 +01:00
lib1500.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1501.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1502.c lib/unit tests: add missing curl_global_cleanup() calls 2021-01-06 15:13:45 +01:00
lib1506.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1507.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib1508.c
lib1509.c
lib1510.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1511.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib1512.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1513.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1514.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib1515.c
lib1517.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib1518.c test1518: adjusted to work with hyper 2021-07-01 14:25:57 +02:00
lib1520.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib1522.c test1522: add debug tracing 2020-12-17 16:55:56 +01:00
lib1523.c
lib1525.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib1526.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib1527.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib1528.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1529.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1530.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1531.c
lib1532.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib1533.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib1534.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1535.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib1536.c tidy-up: make conditional checks more consistent 2021-04-22 09:10:17 +02:00
lib1537.c copyright: update copyright year ranges to 2021 2021-03-27 23:00:14 +01:00
lib1538.c urlapi: add curl_url_strerror() 2021-09-27 08:28:46 +02:00
lib1540.c
lib1541.c
lib1542.c CURLOPT_MAXLIFETIME_CONN: maximum allowed lifetime for conn reuse 2021-10-06 14:38:59 +02:00
lib1550.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1551.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1552.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1553.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1554.c
lib1555.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1556.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1557.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1558.c infof/failf calls: fix format specifiers 2020-11-24 13:18:41 +01:00
lib1559.c urlapi: add curl_url_strerror() 2021-09-27 08:28:46 +02:00
lib1560.c urlapi: URL decode percent-encoded host names 2021-10-11 17:04:14 +02:00
lib1564.c copyright: update copyright year ranges to 2021 2021-05-26 08:18:11 +02:00
lib1565.c misc: update incorrect copyright year ranges 2021-08-16 11:21:47 +02:00
lib1567.c
lib1568.c lib/unit tests: add missing curl_global_cleanup() calls 2021-01-06 15:13:45 +01:00
lib1569.c ftp: add 'prefer_ascii' to the transfer state struct 2021-02-09 14:06:28 +01:00
lib1591.c docs/examples: adjust prototypes for CURLOPT_READFUNCTION 2020-12-30 22:20:24 +01:00
lib1592.c
lib1593.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1594.c test1594/1595/1596: fix to work in hyper mode 2021-06-10 08:42:44 +02:00
lib1900.c
lib1905.c lib/unit tests: add missing curl_global_cleanup() calls 2021-01-06 15:13:45 +01:00
lib1906.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1907.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
lib1908.c
lib1910.c
lib1911.c lib/unit tests: add missing curl_global_cleanup() calls 2021-01-06 15:13:45 +01:00
lib1912.c
lib1913.c
lib1915.c cleanup: constify unmodified static structs 2021-09-23 12:54:35 +02:00
lib1916.c mqtt: handle POST/PUBLISH without a set POSTFIELDSIZE 2020-12-18 12:54:05 +01:00
lib1918.c test1918: verify curl_easy_option_by_name() and curl_easy_option_by_id() 2021-01-15 17:03:29 +01:00
lib1933.c copyright: fix year ranges in need of updates 2021-02-03 08:02:36 +01:00
lib1934.c copyright: fix year ranges in need of updates 2021-02-03 08:02:36 +01:00
lib1935.c copyright: fix year ranges in need of updates 2021-02-03 08:02:36 +01:00
lib1936.c copyright: fix year ranges in need of updates 2021-02-03 08:02:36 +01:00
lib3010.c test3010: work with hyper mode 2021-06-10 08:42:50 +02:00
libauthretry.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
libntlmconnect.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
libprereq.c CURLOPT_PREREQFUNCTION: add new callback 2021-09-27 17:16:43 +02:00
Makefile.am examples/libtest: add .checksrc to dist 2020-12-21 17:06:06 +01:00
Makefile.inc CURLOPT_MAXLIFETIME_CONN: maximum allowed lifetime for conn reuse 2021-10-06 14:38:59 +02:00
mk-lib1521.pl scripts/copyright: .muse is .lift now 2021-09-28 16:42:18 +02:00
notexists.pl
sethostname.c
sethostname.h
stub_gssapi.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
stub_gssapi.h
test307.pl
test610.pl
test613.pl
test1013.pl metalink: remove 2021-06-07 08:14:25 +02:00
test1022.pl
test.h
testtrace.c copyright: fix year ranges 2020-11-05 08:22:10 +01:00
testtrace.h
testutil.c misc: update incorrect copyright year ranges 2021-08-16 11:21:47 +02:00
testutil.h