curl/tests/libtest
Daniel Stenberg fe17c162d0
urlapi: allow setting port number zero
Also set and check errno when strtoul() parsing numbers for better error
checking.

Updated test 1560

Closes #13427
2024-04-19 23:54:21 +02:00
..
.checksrc checksrc: ban gmtime/localtime 2020-07-28 23:51:17 +02:00
.gitignore lib: remove CURLX_NO_MEMORY_CALLBACKS 2023-04-08 17:47:10 +02:00
chkhostname.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
CMakeLists.txt build: add more picky warnings and fix them 2023-11-21 16:35:42 +00:00
first.c build: fix some -Wsign-conversion/-Warith-conversion warnings 2023-12-19 12:45:28 +00:00
lib500.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib501.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib502.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib503.c url: do not URL decode proxy crendentials 2024-04-04 11:35:19 +02:00
lib504.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib505.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib506.c misc: fix typos 2024-04-11 15:44:22 +02:00
lib507.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib508.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib509.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib510.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib511.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib512.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib513.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib514.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib515.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib516.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib517.c build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
lib518.c misc: Fix typos in docs and lib 2024-03-01 09:59:48 +01:00
lib519.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib520.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib521.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib523.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib524.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib525.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib526.c spelling: fix codespell 2.2.6 typos 2023-10-03 21:37:56 +00:00
lib530.c lib: fix conversion warnings with gcc on macOS 2023-05-21 14:02:31 +02:00
lib533.c spelling: fix codespell 2.2.6 typos 2023-10-03 21:37:56 +00:00
lib536.c CURLINFO_USED_PROXY: return bool whether the proxy was used 2024-02-22 08:38:53 +01:00
lib537.c misc: Fix typos in docs and lib 2024-03-01 09:59:48 +01:00
lib539.c libtest: use curl_free() to free libcurl allocated data 2023-08-28 13:24:51 +02:00
lib540.c tests: fix compiler warnings 2023-09-24 21:52:54 +00:00
lib541.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib542.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib543.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib544.c duphandle: use strdup to clone *COPYPOSTFIELDS if size is not set 2023-11-13 17:50:00 +01:00
lib547.c lib: Curl_read/Curl_write clarifications 2024-02-28 12:58:55 +01:00
lib549.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib552.c build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
lib553.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib554.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib555.c lib: Curl_read/Curl_write clarifications 2024-02-28 12:58:55 +01:00
lib556.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib557.c mprintf: overhaul and bugfixes 2023-12-22 09:51:57 +01:00
lib558.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib559.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib560.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib562.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib564.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib566.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib567.c rtsp: deal with borked server responses 2024-01-15 14:13:58 +01:00
lib568.c lib: replace readwrite with write_resp 2024-01-13 17:23:42 +01:00
lib569.c libtest: use curl_free() to free libcurl allocated data 2023-08-28 13:24:51 +02:00
lib570.c libtest: use curl_free() to free libcurl allocated data 2023-08-28 13:24:51 +02:00
lib571.c tests: increase lib571 timeout from 3s to 30s 2023-10-03 14:25:06 +02:00
lib572.c libtest: use curl_free() to free libcurl allocated data 2023-08-28 13:24:51 +02:00
lib573.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib574.c test574: add a timeout to the test 2023-10-04 12:15:57 -07:00
lib575.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib576.c test: minor test cleanups 2023-09-13 11:26:08 -07:00
lib578.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib579.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib582.c lib582: remove code causing warning that is never run 2024-02-07 15:45:29 +01:00
lib583.c tests: move server config files under the pid dir 2023-03-31 23:08:00 -07:00
lib586.c misc: fix typos 2024-04-11 15:44:22 +02:00
lib589.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib590.c checksrc: disallow spaces before labels 2023-05-18 20:45:04 +02:00
lib591.c tests: fix compiler warnings 2023-09-24 21:52:54 +00:00
lib597.c tests: fix compiler warnings 2023-09-24 21:52:54 +00:00
lib598.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib599.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib643.c lib643: LIB644 is never defined, this is dead code 2023-03-15 00:08:09 +01:00
lib650.c lib: move mimepost data from ->req.p.http to ->state 2023-08-17 23:49:57 +02:00
lib651.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib652.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib653.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib654.c tests: fix lib tests to run with a dynamic log directory 2023-03-30 09:53:57 -07:00
lib655.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib658.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib659.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib661.c test661: return from test early in case of curl error 2023-09-13 11:26:08 -07:00
lib666.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib667.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib668.c tests: fix lib tests to run with a dynamic log directory 2023-03-30 09:53:57 -07:00
lib670.c windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
lib674.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib676.c tests: fix lib tests to run with a dynamic log directory 2023-03-30 09:53:57 -07:00
lib677.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib678.c checksrc: find bad indentation in conditions without open brace 2023-04-28 23:11:00 +02:00
lib1156.c http: consider resume with CURLOPT_FAILONERRROR and 416 to be fine 2023-10-30 17:00:34 +01:00
lib1301.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1500.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1501.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1502.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1506.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1507.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1508.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1509.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1510.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib1511.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1512.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib1513.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1514.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1515.c libtest: add a sleep macro for Windows 2023-02-05 03:15:07 -05:00
lib1517.c windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
lib1518.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib1520.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1522.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib1523.c tests: fix bad printf format flags in test code 2023-08-07 10:46:14 +02:00
lib1525.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1526.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1527.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1528.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1529.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1530.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1531.c windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
lib1532.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1533.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib1534.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1535.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1536.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1537.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1538.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1540.c test1540: improve reliability 2023-10-09 14:07:59 +02:00
lib1541.c test 1541: verify getinfo values on first header callback 2024-03-15 09:30:05 +01:00
lib1542.c libtest: add a sleep macro for Windows 2023-02-05 03:15:07 -05:00
lib1545.c test1545: disable deprecation warnings 2023-12-02 20:17:41 +00:00
lib1550.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1551.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib1552.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1553.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1554.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib1555.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1556.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1557.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1558.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1559.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1560.c urlapi: allow setting port number zero 2024-04-19 23:54:21 +02:00
lib1564.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1565.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1567.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib1568.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1569.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib1591.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1592.c test1592: greatly increase the maximum test timeout 2023-09-13 11:26:08 -07:00
lib1593.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1594.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1597.c checksrc: disallow spaces before labels 2023-05-18 20:45:04 +02:00
lib1598.c lib1598: fix CURLOPT_POSTFIELDSIZE usage 2024-03-08 13:08:59 +01:00
lib1662.c tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
lib1900.c test1900: verify duphandle with HSTS using multiple files 2023-11-13 15:36:15 +01:00
lib1901.c test1901: verify chunked POST from callback with CURLOPT_POSTFIELDSIZE set 2024-04-02 23:38:35 +02:00
lib1903.c test1903: actually verify the cookies after the test 2023-10-05 13:13:43 -07:00
lib1905.c checksrc: disallow spaces before labels 2023-05-18 20:45:04 +02:00
lib1906.c test1906: set a lower timeout since it's hit on Windows 2023-10-05 02:05:13 -07:00
lib1907.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib1908.c tests: fix lib tests to run with a dynamic log directory 2023-03-30 09:53:57 -07:00
lib1910.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1911.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1912.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1913.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1915.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib1916.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1918.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1919.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib1933.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1934.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1935.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1936.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1937.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1938.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1939.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1940.c headers: make sure the trailing newline is not stored 2024-01-10 13:57:08 +01:00
lib1945.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib1947.c build: fix some -Wsign-conversion/-Warith-conversion warnings 2023-12-19 12:45:28 +00:00
lib1948.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib1955.c http_aws_sigv4: handle no-value user header entries 2023-09-11 15:24:05 -04:00
lib1956.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1957.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1958.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1959.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib1960.c windows: delete redundant headers 2023-12-18 14:56:57 +00:00
lib1964.c lib: fix aws-sigv4 having date header twice in some cases 2023-08-30 03:41:29 -04:00
lib1970.c aws_sigv4: fall back to UNSIGNED-PAYLOAD for sign_as_s3 2023-03-14 17:04:47 +01:00
lib1971.c aws_sigv4: fall back to UNSIGNED-PAYLOAD for sign_as_s3 2023-03-14 17:04:47 +01:00
lib1972.c aws_sigv4: fall back to UNSIGNED-PAYLOAD for sign_as_s3 2023-03-14 17:04:47 +01:00
lib1973.c aws_sigv4: fall back to UNSIGNED-PAYLOAD for sign_as_s3 2023-03-14 17:04:47 +01:00
lib1974.c aws_sigv4: fall back to UNSIGNED-PAYLOAD for sign_as_s3 2023-03-14 17:04:47 +01:00
lib1975.c aws_sigv4: fall back to UNSIGNED-PAYLOAD for sign_as_s3 2023-03-14 17:04:47 +01:00
lib2301.c ws: fix spelling mistakes in examples and tests 2023-09-03 18:01:58 +02:00
lib2302.c test2302: improve reliability 2023-10-09 14:07:08 +02:00
lib2304.c ws: fix spelling mistakes in examples and tests 2023-09-03 18:01:58 +02:00
lib2305.c build: add more picky warnings and fix them 2023-11-21 16:35:42 +00:00
lib2306.c tests: propagate errors in libtests 2023-10-04 12:15:57 -07:00
lib2402.c misc: fix spelling 2023-02-08 08:30:05 +01:00
lib2404.c http2: fix crash in handling stream weights 2023-06-28 16:32:16 -04:00
lib2405.c lib: add curl_multi_waitfds 2024-04-09 16:53:40 +02:00
lib2502.c misc: fix spelling 2023-02-08 08:30:05 +01:00
lib3010.c tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
lib3025.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib3026.c build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
lib3027.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib3100.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib3101.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
lib3102.c schannel: fix ordering of cert chain info 2023-09-08 03:47:13 -04:00
lib3103.c test3103: CURLOPT_COOKIELIST test 2023-09-19 08:26:14 +02:00
libauthretry.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
libntlmconnect.c tests: fix compiler warnings 2023-09-24 21:52:54 +00:00
libprereq.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
Makefile.am build: add more picky warnings and fix them 2023-11-21 16:35:42 +00:00
Makefile.inc lib: add curl_multi_waitfds 2024-04-09 16:53:40 +02:00
mk-lib1521.pl copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
notexists.pl copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
sethostname.c build: add more picky warnings and fix them 2023-11-21 16:35:42 +00:00
stub_gssapi.c tests: avoid int/size_t conversion size/sign warnings 2024-01-24 15:03:05 +01:00
stub_gssapi.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
test307.pl copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
test610.pl copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
test613.pl test613: stop showing an error on missing output file 2023-10-13 20:28:58 -07:00
test1013.pl copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
test1022.pl copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
test.h windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
testtrace.c build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
testtrace.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
testutil.c build: fix some -Wsign-conversion/-Warith-conversion warnings 2023-12-19 12:45:28 +00:00
testutil.h windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00