badwords: fix issues found in tests

There remain some false positives, hits in test data, and `dir` use,
around 100 issues in total.

There is no plan to enforce badwords on tests.

Also:
- badwords.txt: let a few `manpage[s]` occurrences through
  (in Perl code).

Closes #19541
This commit is contained in:
Viktor Szakats 2025-11-15 00:27:38 +01:00
parent f0de14168a
commit a87383828e
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
247 changed files with 594 additions and 595 deletions

View file

@ -75,5 +75,5 @@ file names\b:filenames
---WWW::Curl ---WWW::Curl
---NET::Curl ---NET::Curl
---Curl Corporation ---Curl Corporation
\bmanpages[^./&:-]:man pages \bmanpages[^./;=&{:-]:man pages
\bmanpage[^si./&:-]:man page \bmanpage[^si./;=&{:-]:man page

View file

@ -84,7 +84,7 @@ EXTRA_DIST = \
valgrind.supp \ valgrind.supp \
$(TESTSCRIPTS) $(TESTSCRIPTS)
# we have two variables here to make sure DIST_SUBDIRS won't get 'unit' # we have two variables here to make sure DIST_SUBDIRS does not get 'unit'
# added twice as then targets such as 'distclean' misbehave and try to # added twice as then targets such as 'distclean' misbehave and try to
# do things twice in that subdir at times (and thus fails). # do things twice in that subdir at times (and thus fails).
if BUILD_UNITTESTS if BUILD_UNITTESTS
@ -108,7 +108,7 @@ curl:
TEST_COMMON = TEST_COMMON =
if CROSSCOMPILING if CROSSCOMPILING
TEST = @echo "NOTICE: we can't run the tests when cross-compiling!" TEST = @echo "NOTICE: we cannot run the tests when cross-compiling!"
PYTEST = $(TEST) PYTEST = $(TEST)
else # if not cross-compiling: else # if not cross-compiling:
@ -124,8 +124,8 @@ TEST_F = -a -w -p -r
TEST_T = -a -w -t -j20 TEST_T = -a -w -t -j20
TEST_E = -a -w -e TEST_E = -a -w -e
# ~<keyword> means that it will run all tests matching the keyword, but will # ~<keyword> means that it runs all tests matching the keyword, but ignores
# ignore their results (since these ones are likely to fail for no good reason) # their results (since these ones are likely to fail for no good reason)
TEST_NF = -a -w -p ~flaky ~timing-dependent TEST_NF = -a -w -p ~flaky ~timing-dependent
# special target for CI use # special target for CI use

View file

@ -33,7 +33,7 @@ our %pastversion;
sub allversions { sub allversions {
my ($file) = @_; my ($file) = @_;
open(A, "<$file") || open(A, "<$file") ||
die "can't open the versions file $file\n"; die "cannot open the versions file $file\n";
my $before = 1; my $before = 1;
my $relcount; my $relcount;
while(<A>) { while(<A>) {

View file

@ -55,7 +55,7 @@ if(!$CAPREFIX) {
} elsif(! -f "$CAPREFIX-ca.cacert" || } elsif(! -f "$CAPREFIX-ca.cacert" ||
! -f "$CAPREFIX-ca.key") { ! -f "$CAPREFIX-ca.key") {
if($OPENSSL eq basename($OPENSSL)) { # has no dir component if($OPENSSL eq basename($OPENSSL)) { # has no directory component
# find openssl in PATH # find openssl in PATH
my $found = 0; my $found = 0;
foreach(File::Spec->path()) { foreach(File::Spec->path()) {

View file

@ -27,6 +27,6 @@ string_mask = utf8only
countryName = "Country Name" countryName = "Country Name"
countryName_value = NN countryName_value = NN
organizationName = "Organization Name" organizationName = "Organization Name"
organizationName_value = Edel Curl Arctic Illudium Research Cloud organizationName_value = Edel curl Arctic Illudium Research Cloud
commonName = "Common Name" commonName = "Common Name"
commonName_value = Northern Nowhere Trust Anchor commonName_value = Northern Nowhere Trust Anchor

View file

@ -29,6 +29,6 @@ string_mask = utf8only
countryName = "Country Name is Northern Nowhere" countryName = "Country Name is Northern Nowhere"
countryName_value = NN countryName_value = NN
organizationName = "Organization Name" organizationName = "Organization Name"
organizationName_value = Edel Curl Arctic Illudium Research Cloud organizationName_value = Edel curl Arctic Illudium Research Cloud
commonName = "Common Name" commonName = "Common Name"
commonName_value = localhost commonName_value = localhost

View file

@ -29,6 +29,6 @@ string_mask = utf8only
countryName = "Country Name is Northern Nowhere" countryName = "Country Name is Northern Nowhere"
countryName_value = NN countryName_value = NN
organizationName = "Organization Name" organizationName = "Organization Name"
organizationName_value = Edel Curl Arctic Illudium Research Cloud organizationName_value = Edel curl Arctic Illudium Research Cloud
commonName = "Common Name" commonName = "Common Name"
commonName_value = localhost commonName_value = localhost

View file

@ -29,6 +29,6 @@ string_mask = utf8only
countryName = "Country Name is Northern Nowhere" countryName = "Country Name is Northern Nowhere"
countryName_value = NN countryName_value = NN
organizationName = "Organization Name" organizationName = "Organization Name"
organizationName_value = Edel Curl Arctic Illudium Research Cloud organizationName_value = Edel curl Arctic Illudium Research Cloud
commonName = "Common Name" commonName = "Common Name"
commonName_value = localhost.nn commonName_value = localhost.nn

View file

@ -29,6 +29,6 @@ string_mask = utf8only
countryName = "Country Name is Northern Nowhere" countryName = "Country Name is Northern Nowhere"
countryName_value = NN countryName_value = NN
organizationName = "Organization Name" organizationName = "Organization Name"
organizationName_value = Edel Curl Arctic Illudium Research Cloud organizationName_value = Edel curl Arctic Illudium Research Cloud
commonName = "Common Name" commonName = "Common Name"
commonName_value = localhost.nn commonName_value = localhost.nn

View file

@ -29,6 +29,6 @@ string_mask = utf8only
countryName = "Country Name is Northern Nowhere" countryName = "Country Name is Northern Nowhere"
countryName_value = NN countryName_value = NN
organizationName = "Organization Name" organizationName = "Organization Name"
organizationName_value = Edel Curl Arctic Illudium Research Cloud organizationName_value = Edel curl Arctic Illudium Research Cloud
commonName = "Common Name" commonName = "Common Name"
commonName_value = localhost.nn commonName_value = localhost.nn

View file

@ -29,6 +29,6 @@ string_mask = utf8only
countryName = "Country Name is Northern Nowhere" countryName = "Country Name is Northern Nowhere"
countryName_value = NN countryName_value = NN
organizationName = "Organization Name" organizationName = "Organization Name"
organizationName_value = Edel Curl Arctic Illudium Research Cloud organizationName_value = Edel curl Arctic Illudium Research Cloud
commonName = "Common Name" commonName = "Common Name"
commonName_value = localhost commonName_value = localhost

View file

@ -30,6 +30,6 @@ string_mask = utf8only
countryName = "Country Name is Northern Nowhere" countryName = "Country Name is Northern Nowhere"
countryName_value = NN countryName_value = NN
organizationName = "Organization Name" organizationName = "Organization Name"
organizationName_value = Edel Curl Arctic Illudium Research Cloud organizationName_value = Edel curl Arctic Illudium Research Cloud
commonName = "Common Name" commonName = "Common Name"
commonName_value = localhost commonName_value = localhost

View file

@ -29,10 +29,10 @@ codeset-utf8
LC_ALL=C.UTF-8 LC_ALL=C.UTF-8
</setenv> </setenv>
<name> <name>
HTTP over proxy with malformatted IDN host name HTTP over proxy with malformatted IDN hostname
</name> </name>
# This host name contains an invalid UTF-8 byte sequence that can't be # This hostname contains an invalid UTF-8 byte sequence that cannot be
# converted into an IDN name # converted into an IDN name
<stdin> <stdin>
url = "http://invalid-utf8-%hex[%e2%90]hex%.local/page/%TESTNUMBER" url = "http://invalid-utf8-%hex[%e2%90]hex%.local/page/%TESTNUMBER"

View file

@ -27,7 +27,7 @@ codeset-utf8
LC_ALL=C.UTF-8 LC_ALL=C.UTF-8
</setenv> </setenv>
<name> <name>
HTTP over proxy with too long IDN host name HTTP over proxy with too long IDN hostname
</name> </name>
<command> <command>
http://too-long-IDN-name-c%hex[%c3%bc]hex%rl-r%hex[%c3%bc]hex%le%hex[%c3%9f]hex%-la-la-la-dee-da-flooby-nooby.local/page/%TESTNUMBER -x %HOSTIP:%NOLISTENPORT http://too-long-IDN-name-c%hex[%c3%bc]hex%rl-r%hex[%c3%bc]hex%le%hex[%c3%9f]hex%-la-la-la-dee-da-flooby-nooby.local/page/%TESTNUMBER -x %HOSTIP:%NOLISTENPORT

View file

@ -26,7 +26,7 @@ FTP PASV upload resume from end of file
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -T %LOGDIR/upload%TESTNUMBER -C - ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -T %LOGDIR/upload%TESTNUMBER -C -
</command> </command>
<file name="%LOGDIR/upload%TESTNUMBER"> <file name="%LOGDIR/upload%TESTNUMBER">
this is the *****cr@p******** that we're gonna upload this is the *****cr@p******** that we are gonna upload
worx? worx?
</file> </file>
@ -45,7 +45,7 @@ APPE %TESTNUMBER
QUIT QUIT
</protocol> </protocol>
<upload> <upload>
cr@p******** that we're gonna upload cr@p******** that we are gonna upload
worx? worx?
</upload> </upload>

View file

@ -26,7 +26,7 @@ FTP PASV upload resume from end of empty file
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -T %LOGDIR/upload%TESTNUMBER -C - ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -T %LOGDIR/upload%TESTNUMBER -C -
</command> </command>
<file name="%LOGDIR/upload%TESTNUMBER"> <file name="%LOGDIR/upload%TESTNUMBER">
this is the *****cr@p******** that we're gonna upload this is the *****cr@p******** that we are gonna upload
worx? worx?
</file> </file>
@ -45,7 +45,7 @@ STOR %TESTNUMBER
QUIT QUIT
</protocol> </protocol>
<upload> <upload>
this is the *****cr@p******** that we're gonna upload this is the *****cr@p******** that we are gonna upload
worx? worx?
</upload> </upload>

View file

@ -50,7 +50,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER -T%LOGDIR/test%TESTNUMBER.txt -C -
# Verify data after the test has been "shot" # Verify data after the test has been "shot"
<verify> <verify>
# curl doesn't do a HEAD request on the remote file so it has no idea whether # curl does not do a HEAD request on the remote file so it has no idea whether
# it can skip part of the file or not. Instead, it sends the entire file. # it can skip part of the file or not. Instead, it sends the entire file.
<protocol crlf="headers"> <protocol crlf="headers">
PUT /%TESTNUMBER HTTP/1.1 PUT /%TESTNUMBER HTTP/1.1

View file

@ -42,7 +42,7 @@ ftp://test-number:%TESTNUMBER/wanted/page -p -x %HOSTIP:%HTTPPORT
# #
# Verify data after the test has been "shot" # Verify data after the test has been "shot"
<verify> <verify>
# The server doesn't implement CONNECT for ftp, so this must be a failure test # The server does not implement CONNECT for ftp, so this must be a failure test
<errorcode> <errorcode>
56 56
</errorcode> </errorcode>

View file

@ -23,7 +23,7 @@ HTTP 1.0 PUT from stdin with no content length
http://%HOSTIP:%HTTPPORT/bzz/%TESTNUMBER -T - -0 http://%HOSTIP:%HTTPPORT/bzz/%TESTNUMBER -T - -0
</command> </command>
<stdin> <stdin>
this data can't be sent this data cannot be sent
</stdin> </stdin>
</client> </client>

View file

@ -28,7 +28,7 @@ boo
http http
</server> </server>
<name> <name>
NO_PROXY test, with user name in URL NO_PROXY test, with username in URL
</name> </name>
<setenv> <setenv>

View file

@ -37,7 +37,7 @@ PASS ftp@example.com
PWD PWD
PRET RETR %TESTNUMBER PRET RETR %TESTNUMBER
</protocol> </protocol>
# we expect that the server doesn't understand PRET # we expect that the server does not understand PRET
<errorcode> <errorcode>
84 84
</errorcode> </errorcode>

View file

@ -20,10 +20,10 @@ ftp
FTP PASV upload resume FTP PASV upload resume
</name> </name>
<command> <command>
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -T %LOGDIR/upload%TESTNUMBER -C 40 ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -T %LOGDIR/upload%TESTNUMBER -C 41
</command> </command>
<file name="%LOGDIR/upload%TESTNUMBER"> <file name="%LOGDIR/upload%TESTNUMBER">
this is the *****crap******** that we're gonna upload this is the *****crap******** that we are gonna upload
worx? worx?
</file> </file>

View file

@ -11,7 +11,7 @@ documentation
# Client-side # Client-side
<client> <client>
<name> <name>
Manpage syntax checks Man page syntax checks
</name> </name>
<command type="perl"> <command type="perl">

View file

@ -81,7 +81,7 @@ void startfunc(int a, int b) {
// CPP comment ? // CPP comment ?
/* comment doesn't end /* comment does not end
</file> </file>
</client> </client>

View file

@ -21,7 +21,7 @@ Mime
smtp smtp
</server> </server>
<name> <name>
SMTP multipart with file name escaping SMTP multipart with filename escaping
</name> </name>
<stdin crlf="yes"> <stdin crlf="yes">
From: different From: different

View file

@ -41,7 +41,7 @@ FTP PORT download, no data conn and no transient negative reply
s/^EPRT \|1\|(\S*)/EPRT \|1\|/ s/^EPRT \|1\|(\S*)/EPRT \|1\|/
</strippart> </strippart>
# This test doesn't send a QUIT because the main state machine in multi.c # This test does not send a QUIT because the main state machine in multi.c
# triggers the timeout and sets the CURLE_OPERATION_TIMEDOUT error (28) for # triggers the timeout and sets the CURLE_OPERATION_TIMEDOUT error (28) for
# which the FTP disconnect code generically has to assume could mean the # which the FTP disconnect code generically has to assume could mean the
# control the connection and thus it cannot send any command. # control the connection and thus it cannot send any command.

View file

@ -28,7 +28,7 @@ This server says moo
http http
</server> </server>
<name> <name>
HTTP cookie domains tailmatching the host name HTTP cookie domains tailmatching the hostname
</name> </name>
<command> <command>
http://example.fake/c/%TESTNUMBER http://bexample.fake/c/%TESTNUMBER -b %LOGDIR/injar%TESTNUMBER -x %HOSTIP:%HTTPPORT http://example.fake/c/%TESTNUMBER http://bexample.fake/c/%TESTNUMBER -b %LOGDIR/injar%TESTNUMBER -x %HOSTIP:%HTTPPORT

View file

@ -8,7 +8,7 @@ cookies
</keywords> </keywords>
</info> </info>
# This test is very similar to 1216, only that it sets the cookies from the # This test is similar to 1216, only that it sets the cookies from the
# first site instead of reading from a file # first site instead of reading from a file
<reply> <reply>
<data crlf="headers"> <data crlf="headers">

View file

@ -57,7 +57,7 @@ crypto
digest digest
</features> </features>
<name> <name>
HTTP with Digest authorization with user name needing escape HTTP with Digest authorization with username needing escape
</name> </name>
<command> <command>
http://%5cuser%22:password@%HOSTIP:%HTTPPORT/%TESTNUMBER --digest http://%5cuser%22:password@%HOSTIP:%HTTPPORT/%TESTNUMBER --digest

View file

@ -9,7 +9,7 @@ connect to non-listen
# Server-side # Server-side
<reply> <reply>
<servercmd> <servercmd>
# Assuming there's nothing listening on port 1 # Assuming there is nothing listening on port 1
REPLY EPSV 229 Entering Passive Mode (|||1|) REPLY EPSV 229 Entering Passive Mode (|||1|)
</servercmd> </servercmd>
<data> <data>

View file

@ -24,7 +24,7 @@ Content-Type: text/html
http http
</server> </server>
<name> <name>
URL with 1000+ letter user name + password URL with 1000+ letter username + password
</name> </name>
<command> <command>
"%repeat[1000 x A]%:%repeat[1002 x B]%@%HOSTIP:%HTTPPORT/%TESTNUMBER" "%repeat[1000 x A]%:%repeat[1002 x B]%@%HOSTIP:%HTTPPORT/%TESTNUMBER"

View file

@ -15,7 +15,7 @@ DELAY
<servercmd> <servercmd>
writedelay: 2000 writedelay: 2000
</servercmd> </servercmd>
# ~1200 bytes (so that they don't fit in two 512 byte chunks) # ~1200 bytes (so that they do not fit in two 512 byte chunks)
<data nocheck="yes"> <data nocheck="yes">
012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
</data> </data>

View file

@ -35,7 +35,7 @@ Connection: close
http http
</server> </server>
<name> <name>
URL with '#' at end of host name instead of '/' URL with '#' at end of hostname instead of '/'
</name> </name>
<command> <command>
--proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.%TESTNUMBER:%HTTPPORT#@127.0.0.1/tricked.html no-scheme-url.com.%TESTNUMBER:%HTTPPORT#@127.127.127.127/again.html --proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.%TESTNUMBER:%HTTPPORT#@127.0.0.1/tricked.html no-scheme-url.com.%TESTNUMBER:%HTTPPORT#@127.127.127.127/again.html

View file

@ -16,7 +16,7 @@ HTTP GET
http http
</features> </features>
<name> <name>
HTTP URL with space in host name HTTP URL with space in hostname
</name> </name>
<command> <command>
-g "http://127.0.0.1 www.example.com/we/want/%TESTNUMBER" -g "http://127.0.0.1 www.example.com/we/want/%TESTNUMBER"

View file

@ -33,7 +33,7 @@ Content-Length: 0
http http
</server> </server>
<name> <name>
HTTP with --resolve and same host name using different cases HTTP with --resolve and same hostname using different cases
</name> </name>
<command> <command>
--resolve MiXeDcAsE.cOm:%HTTPPORT:%HOSTIP http://MiXeDcAsE.cOm:%HTTPPORT/%TESTNUMBER http://mixedcase.com:%HTTPPORT/%TESTNUMBER0001 --resolve MiXeDcAsE.cOm:%HTTPPORT:%HOSTIP http://MiXeDcAsE.cOm:%HTTPPORT/%TESTNUMBER http://mixedcase.com:%HTTPPORT/%TESTNUMBER0001

View file

@ -31,7 +31,7 @@ Funny-head: yesyes
http http
</server> </server>
# make sure there's no Expect: 100-continue when there's no file to send! # make sure there is no Expect: 100-continue when there is no file to send!
<name> <name>
HTTP with zero size file PUT HTTP with zero size file PUT
</name> </name>

View file

@ -30,7 +30,7 @@ connection-monitor
http http
</server> </server>
<name> <name>
Reusing HTTP proxy connection for two different host names Reusing HTTP proxy connection for two different hostnames
</name> </name>
<command> <command>
--proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.%TESTNUMBER:8990/ http://different.remote.haxx.se.%TESTNUMBER:8990 --proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.%TESTNUMBER:8990/ http://different.remote.haxx.se.%TESTNUMBER:8990

View file

@ -28,7 +28,7 @@ Provide illegal proxy name
# #
# Verify data after the test has been "shot" # Verify data after the test has been "shot"
<verify> <verify>
# Couldn't resolve proxy name # Could not resolve proxy name
<errorcode> <errorcode>
5 5
</errorcode> </errorcode>

View file

@ -46,7 +46,7 @@ codeset-utf8
LC_ALL=C.UTF-8 LC_ALL=C.UTF-8
</setenv> </setenv>
<name> <name>
Redirect following to UTF-8 IDN host name Redirect following to UTF-8 IDN hostname
</name> </name>
<command> <command>

View file

@ -27,7 +27,7 @@ tftp://%HOSTIP:%NOLISTENPORT/%repeat[503 x a]%z
# #
# Verify data after the test has been "shot" # Verify data after the test has been "shot"
<verify> <verify>
# TFTP file name too long # TFTP filename too long
<errorcode> <errorcode>
71 71
</errorcode> </errorcode>

View file

@ -23,7 +23,7 @@ Connection: close
Content-Type: text/html Content-Type: text/html
Funny-head: yesyes Funny-head: yesyes
These data aren't actually sent to the client These data are not actually sent to the client
</data> </data>
</reply> </reply>

View file

@ -40,7 +40,7 @@ http
socks5unix socks5unix
</server> </server>
<name> <name>
HTTP GET with host name using SOCKS5h via Unix sockets HTTP GET with hostname using SOCKS5h via Unix sockets
</name> </name>
<command> <command>
http://this.is.a.host.name:%HTTPPORT/%TESTNUMBER --proxy socks5h://localhost%SOCKSUNIXPATH http://this.is.a.host.name:%HTTPPORT/%TESTNUMBER --proxy socks5h://localhost%SOCKSUNIXPATH

View file

@ -41,7 +41,7 @@ https
socks5unix socks5unix
</server> </server>
<name> <name>
HTTPS GET with host name using SOCKS5h via Unix sockets HTTPS GET with hostname using SOCKS5h via Unix sockets
</name> </name>
<command> <command>
https://this.is.a.host.name:%HTTPSPORT/%TESTNUMBER --insecure --proxy socks5h://localhost%SOCKSUNIXPATH https://this.is.a.host.name:%HTTPSPORT/%TESTNUMBER --insecure --proxy socks5h://localhost%SOCKSUNIXPATH

View file

@ -28,7 +28,7 @@ red.onion
# #
# Verify data after the test has been "shot" # Verify data after the test has been "shot"
<verify> <verify>
# Couldn't resolve host name # Could not resolve hostname
<errorcode> <errorcode>
6 6
</errorcode> </errorcode>

View file

@ -28,7 +28,7 @@ tasty.onion.
# #
# Verify data after the test has been "shot" # Verify data after the test has been "shot"
<verify> <verify>
# Couldn't resolve host name # Could not resolve hostname
<errorcode> <errorcode>
6 6
</errorcode> </errorcode>

View file

@ -14,7 +14,7 @@ FILE
file file
</server> </server>
<name> <name>
file:// don't overwrite self with --skip-existing file:// do not overwrite self with --skip-existing
</name> </name>
<command option="no-output"> <command option="no-output">
file://localhost%FILE_PWD/%LOGDIR/test%TESTNUMBER.txt -o %LOGDIR/test%TESTNUMBER.txt --skip-existing file://localhost%FILE_PWD/%LOGDIR/test%TESTNUMBER.txt -o %LOGDIR/test%TESTNUMBER.txt --skip-existing

View file

@ -13,8 +13,8 @@ HTTP/1.0 401 BAD BOY
Server: swsclose Server: swsclose
Content-Type: text/html Content-Type: text/html
This contains a response code >= 400, so curl shouldn't display this. Even This contains a response code >= 400, so curl should not display this. Even
though it's a response code that triggers authentication, we're not using though it is a response code that triggers authentication, we are not using
authentication so we should still fail. authentication so we should still fail.
</data> </data>
</reply> </reply>

View file

@ -29,7 +29,7 @@ lib%TESTNUMBER
return failure immediately from progress callback return failure immediately from progress callback
</name> </name>
# this server/host won't be used for real # this server/host will not be used for real
<command> <command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER
</command> </command>

View file

@ -10,7 +10,7 @@ resolve
</info> </info>
<reply> <reply>
# Close the connection after the first request but don't tell the client to do # Close the connection after the first request but do not tell the client to do
# so! When starting the second request it'll detect a dead connection and must # so! When starting the second request it'll detect a dead connection and must
# not clean the DNS entries added manually. # not clean the DNS entries added manually.
<data1> <data1>

View file

@ -14,8 +14,8 @@ HTTP/1.0 401 BAD BOY
Server: swsclose Server: swsclose
Content-Type: text/html Content-Type: text/html
This contains a response code >= 400, so curl shouldn't display this. Even This contains a response code >= 400, so curl should not display this. Even
though it's a response code that triggers authentication, we're not using though it is a response code that triggers authentication, we are not using
authentication so we should still fail. authentication so we should still fail.
</data> </data>
</reply> </reply>

View file

@ -42,7 +42,7 @@ IMAP cleanup before a connection was created
lib%TESTNUMBER lib%TESTNUMBER
</tool> </tool>
# this MUST use a host name that doesn't resolve # this MUST use a hostname that does not resolve
<command> <command>
imap://non-existing-host.haxx.se:%IMAPPORT/%TESTNUMBER imap://non-existing-host.haxx.se:%IMAPPORT/%TESTNUMBER
</command> </command>

View file

@ -29,7 +29,7 @@ lib%TESTNUMBER
verify api is protected against calls from callbacks verify api is protected against calls from callbacks
</name> </name>
# this server/host won't be used for real # this server/host will not be used for real
<command> <command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER
</command> </command>

View file

@ -15,7 +15,7 @@ lib%TESTNUMBER
</tool> </tool>
<name> <name>
Remove easy handle in pending connections doesn't leave dangling entry Remove easy handle in pending connections does not leave dangling entry
</name> </name>
<command> <command>
hostname.invalid hostname.invalid

View file

@ -69,7 +69,7 @@ https
https https
</killserver> </killserver>
<name> <name>
Cookies set over HTTP can't override secure ones Cookies set over HTTP cannot override secure ones
</name> </name>
<command> <command>
--insecure https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0001 -L -c %LOGDIR/jar%TESTNUMBER.txt -H "Host: www.example.com" http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002 -L -c %LOGDIR/jar%TESTNUMBER.txt -H "Host: www.example.com" --insecure https://%HOSTIP:%HTTPSPORT/%TESTNUMBER0001 -L -c %LOGDIR/jar%TESTNUMBER.txt -H "Host: www.example.com" http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002 -L -c %LOGDIR/jar%TESTNUMBER.txt -H "Host: www.example.com"

View file

@ -42,7 +42,7 @@ IMAP cleanup before a connection was created
lib1553 lib1553
</tool> </tool>
# it is important this uses a host name that resolves successfully # it is important this uses a hostname that resolves successfully
<command> <command>
imap://localhost:%IMAPPORT/%TESTNUMBER imap://localhost:%IMAPPORT/%TESTNUMBER
</command> </command>

View file

@ -16,7 +16,7 @@ timing-dependent
lib%TESTNUMBER lib%TESTNUMBER
</tool> </tool>
<name> <name>
HTTP request, remove handle while resolving, don't block HTTP request, remove handle while resolving, do not block
</name> </name>
<command> <command>

View file

@ -32,7 +32,7 @@ ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
# Verify data after the test has been "shot" # Verify data after the test has been "shot"
<verify> <verify>
# This doesn't send QUIT because of known bug: # This does not send QUIT because of known bug:
# "7.8 Premature transfer end but healthy control channel" # "7.8 Premature transfer end but healthy control channel"
<protocol crlf="yes"> <protocol crlf="yes">
USER anonymous USER anonymous

View file

@ -17,9 +17,9 @@ Proxy-Authenticate: Basic realm="Squid proxy-caching web server"
Server: swsclose Server: swsclose
Content-Type: text/html Content-Type: text/html
Even though it's the response code that triggers authentication, we're Even though it is the response code that triggers authentication, we are
using NTLM and the server isn't, so we should fail. We know the server using NTLM and the server is not, so we should fail. We know the server
isn't because there's no Proxy-Authorization: NTLM header is not because there is no Proxy-Authorization: NTLM header
</data1001> </data1001>
</reply> </reply>

View file

@ -56,7 +56,7 @@ proxy
<verify> <verify>
# The second CONNECT will be made to the dynamic port number the FTP server # The second CONNECT will be made to the dynamic port number the FTP server
# opens for us, so we can't compare with a known pre-existing number! # opens for us, so we cannot compare with a known pre-existing number!
<strippart> <strippart>
s/((https.proxy):(\d+))/$2:12345/ s/((https.proxy):(\d+))/$2:12345/
</strippart> </strippart>

View file

@ -65,7 +65,7 @@ proxy
<verify> <verify>
# The second and third CONNECT will be made to the dynamic port number the FTP # The second and third CONNECT will be made to the dynamic port number the FTP
# server opens for us, so we can't compare with known pre-existing numbers! # server opens for us, so we cannot compare with known pre-existing numbers!
<strippart> <strippart>
s/((https.proxy):(\d+))/$2:12345/ s/((https.proxy):(\d+))/$2:12345/

View file

@ -36,7 +36,7 @@ codeset-utf8
LC_ALL=C.UTF-8 LC_ALL=C.UTF-8
</setenv> </setenv>
<name> <name>
HTTP over proxy with IDN host name HTTP over proxy with IDN hostname
</name> </name>
<command> <command>
http://www.%hex[%c3%a5%c3%a4%c3%b6]hex%.se/page/%TESTNUMBER -x %HOSTIP:%HTTPPORT http://www.gro%hex[%c3%9f]hex%e.de/page/%TESTNUMBER http://www.%hex[%c3%a5%c3%a4%c3%b6]hex%.se/page/%TESTNUMBER -x %HOSTIP:%HTTPPORT http://www.gro%hex[%c3%9f]hex%e.de/page/%TESTNUMBER

View file

@ -51,7 +51,7 @@ If this is received, the location following worked
http http
</server> </server>
<name> <name>
HTTP redirect with bad host name separation and slash in parameters HTTP redirect with bad hostname separation and slash in parameters
</name> </name>
<command> <command>
http://%HOSTIP:%HTTPPORT?oh=what-weird=test/%TESTNUMBER -L http://%HOSTIP:%HTTPPORT?oh=what-weird=test/%TESTNUMBER -L

View file

@ -42,7 +42,7 @@ Content-Length: 15
http http
</server> </server>
<name> <name>
HTTP GET with resume and redirect (to a page that doesn't resume) HTTP GET with resume and redirect (to a page that does not resume)
</name> </name>
<command> <command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C 50 -L http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C 50 -L

View file

@ -32,7 +32,7 @@ http://%HOSTIP:%NOLISTENPORT/not-there/%TESTNUMBER
# Verify data after the test has been "shot" # Verify data after the test has been "shot"
<verify> <verify>
# 7 CURLE_COULDNT_CONNECT (expected since there's nothing listening there) # 7 CURLE_COULDNT_CONNECT (expected since there is nothing listening there)
# 42 CURLE_ABORTED_BY_CALLBACK # 42 CURLE_ABORTED_BY_CALLBACK
<errorcode> <errorcode>
42 42

View file

@ -21,7 +21,7 @@ hello
# Client-side # Client-side
<client> <client>
# require HTTP too as otherwise CURLOPT_POST doesn't exist # require HTTP too as otherwise CURLOPT_POST does not exist
<features> <features>
mqtt mqtt
http http

View file

@ -17,7 +17,7 @@ non-existing host
http http
</features> </features>
<name> <name>
attempt connect to non-existing host name attempt connect to non-existing hostname
</name> </name>
<command> <command>
--ipv4 non-existing-host.haxx.se. --ipv4 non-existing-host.haxx.se.

View file

@ -11,7 +11,7 @@ HTTP Digest auth
<reply> <reply>
<!-- Alternate the order that Basic and Digest headers appear in responses to <!-- Alternate the order that Basic and Digest headers appear in responses to
ensure that the order doesn't matter. --> ensure that the order does not matter. -->
<!-- First request has Basic auth, wrong password --> <!-- First request has Basic auth, wrong password -->
<data100 crlf="headers"> <data100 crlf="headers">

View file

@ -12,7 +12,7 @@ NTLM
<reply> <reply>
<!-- Alternate the order that Basic and NTLM headers appear in responses to <!-- Alternate the order that Basic and NTLM headers appear in responses to
ensure that the order doesn't matter. --> ensure that the order does not matter. -->
<!-- First request has Basic auth, wrong password --> <!-- First request has Basic auth, wrong password -->
<data100 crlf="headers"> <data100 crlf="headers">

View file

@ -11,7 +11,7 @@ HTTP Digest auth
<reply> <reply>
<!-- Alternate the order that Basic and Digest headers appear in responses to <!-- Alternate the order that Basic and Digest headers appear in responses to
ensure that the order doesn't matter. --> ensure that the order does not matter. -->
<!-- First request has Digest auth, wrong password --> <!-- First request has Digest auth, wrong password -->
<data100 crlf="headers"> <data100 crlf="headers">

View file

@ -13,7 +13,7 @@ HTTP Digest auth
Explanation for the duplicate 400 requests: Explanation for the duplicate 400 requests:
libcurl doesn't detect that a given Digest password is wrong already on the libcurl does not detect that a given Digest password is wrong already on the
first 401 response (as the data400 gives). libcurl will instead consider the first 401 response (as the data400 gives). libcurl will instead consider the
new response just as a duplicate and it sends another and detects the auth new response just as a duplicate and it sends another and detects the auth
problem on the second 401 response! problem on the second 401 response!

View file

@ -12,7 +12,7 @@ NTLM
<reply> <reply>
<!-- Alternate the order that Digest and NTLM headers appear in responses to <!-- Alternate the order that Digest and NTLM headers appear in responses to
ensure that the order doesn't matter. --> ensure that the order does not matter. -->
<!-- First request has Digest auth, wrong password --> <!-- First request has Digest auth, wrong password -->
<data100 crlf="headers"> <data100 crlf="headers">

View file

@ -12,7 +12,7 @@ NTLM
<reply> <reply>
<!-- Alternate the order that Basic and NTLM headers appear in responses to <!-- Alternate the order that Basic and NTLM headers appear in responses to
ensure that the order doesn't matter. --> ensure that the order does not matter. -->
<!-- First request has NTLM auth, wrong password --> <!-- First request has NTLM auth, wrong password -->
<data100 crlf="headers"> <data100 crlf="headers">

View file

@ -12,13 +12,13 @@ NTLM
<reply> <reply>
<!-- Alternate the order that Digest and NTLM headers appear in responses to <!-- Alternate the order that Digest and NTLM headers appear in responses to
ensure that the order doesn't matter. --> ensure that the order does not matter. -->
<!-- <!--
Explanation for the duplicate 400 requests: Explanation for the duplicate 400 requests:
libcurl doesn't detect that a given Digest password is wrong already on the libcurl does not detect that a given Digest password is wrong already on the
first 401 response (as the data400 gives). libcurl will instead consider the first 401 response (as the data400 gives). libcurl will instead consider the
new response just as a duplicate and it sends another and detects the auth new response just as a duplicate and it sends another and detects the auth
problem on the second 401 response! problem on the second 401 response!

View file

@ -46,7 +46,7 @@ codeset-utf8
LC_ALL=C.UTF-8 LC_ALL=C.UTF-8
</setenv> </setenv>
<name> <name>
Connection reuse with IDN host name Connection reuse with IDN hostname
</name> </name>
<command> <command>

View file

@ -47,7 +47,7 @@ codeset-utf8
LC_ALL=C.UTF-8 LC_ALL=C.UTF-8
</setenv> </setenv>
<name> <name>
Connection reuse with IDN host name over HTTP proxy Connection reuse with IDN hostname over HTTP proxy
</name> </name>
<command> <command>

View file

@ -40,7 +40,7 @@ dns
override-dns override-dns
</features> </features>
<name> <name>
HTTP GET with host name HTTP GET with hostname
</name> </name>
<setenv> <setenv>
CURL_DNS_SERVER=127.0.0.1:%DNSPORT CURL_DNS_SERVER=127.0.0.1:%DNSPORT

View file

@ -24,7 +24,7 @@ dns
override-dns override-dns
</features> </features>
<name> <name>
HTTP GET with bad host name HTTP GET with bad hostname
</name> </name>
<setenv> <setenv>
CURL_DNS_SERVER=127.0.0.1:%DNSPORT CURL_DNS_SERVER=127.0.0.1:%DNSPORT

View file

@ -22,7 +22,7 @@ dns
override-dns override-dns
</features> </features>
<name> <name>
Get three URLs with bad host name - cache Get three URLs with bad hostname - cache
</name> </name>
<setenv> <setenv>
CURL_DNS_SERVER=127.0.0.1:%DNSPORT CURL_DNS_SERVER=127.0.0.1:%DNSPORT

View file

@ -23,7 +23,7 @@ mqtt
mqtt mqtt
</server> </server>
<name> <name>
MQTT with very long user name MQTT with 64 KiB long username
</name> </name>
<file name="%LOGDIR/input%TESTNUMBER"> <file name="%LOGDIR/input%TESTNUMBER">
user = %repeat[65536 x a]%:fakepasswd user = %repeat[65536 x a]%:fakepasswd

View file

@ -50,7 +50,7 @@ ws://%HOSTIP:%HTTPPORT/%TESTNUMBER
</client> </client>
# #
# PONG with no data and the 32 bit mask # PONG with no data and the 32-bit mask
# #
<verify> <verify>
<protocol crlf="yes" nonewline="yes" nocheck="yes"> <protocol crlf="yes" nonewline="yes" nocheck="yes">

View file

@ -49,7 +49,7 @@ ws://%HOSTIP:%HTTPPORT/%TESTNUMBER
</client> </client>
# #
# PONG with no data and the 32 bit mask # PONG with no data and the 32-bit mask
# #
<verify> <verify>
<protocol crlf="headers" nocheck="yes"> <protocol crlf="headers" nocheck="yes">

View file

@ -25,7 +25,7 @@ FTP resumed upload but no file present remotely
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -T %LOGDIR/upload%TESTNUMBER -C - ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -T %LOGDIR/upload%TESTNUMBER -C -
</command> </command>
<file name="%LOGDIR/upload%TESTNUMBER"> <file name="%LOGDIR/upload%TESTNUMBER">
this is the *****crap******** that we're gonna upload this is the *****crap******** that we are gonna upload
worx? worx?
</file> </file>
@ -44,7 +44,7 @@ STOR %TESTNUMBER
QUIT QUIT
</protocol> </protocol>
<upload> <upload>
this is the *****crap******** that we're gonna upload this is the *****crap******** that we are gonna upload
worx? worx?
</upload> </upload>

View file

@ -12,7 +12,7 @@ HTTP GET
HTTP/1.0 404 BAD BOY HTTP/1.0 404 BAD BOY
Content-Type: text/html Content-Type: text/html
This silly page doesn't reaaaaaly exist so you should not get it. This silly page does not reaaaaaly exist so you should not get it.
</data> </data>
</reply> </reply>

View file

@ -12,7 +12,7 @@ HTTP proxy Digest auth
</info> </info>
# Server-side # Server-side
<reply> <reply>
# The stupid test server doesn't response anything at all until the full # The stupid test server does not response anything at all until the full
# request has been sent, and then of course the full POST has already been # request has been sent, and then of course the full POST has already been
# sent! # sent!
<data> <data>

View file

@ -10,7 +10,7 @@ HTTP proxy Digest auth
</info> </info>
# Server-side # Server-side
<reply> <reply>
# The stupid test server doesn't response anything at all until the full # The stupid test server does not response anything at all until the full
# request has been sent, and then of course the full POST has already been # request has been sent, and then of course the full POST has already been
# sent! # sent!
<data> <data>

View file

@ -16,7 +16,7 @@ file
<name> <name>
GET a directory using file:// GET a directory using file://
</name> </name>
<!-- doesn't work on win32, see #6379 --> <!-- does not work on win32, see #6379 -->
<features> <features>
!win32 !win32
</features> </features>

View file

@ -23,7 +23,7 @@ Connection: close
Content-Type: text/html Content-Type: text/html
Funny-head: yesyes Funny-head: yesyes
These data aren't actually sent to the client These data are not actually sent to the client
</data> </data>
</reply> </reply>

View file

@ -16,7 +16,7 @@ file
<name> <name>
GET a directory using file:// GET a directory using file://
</name> </name>
<!-- doesn't work on win32, see #6379 --> <!-- does not work on win32, see #6379 -->
<features> <features>
!win32 !win32
</features> </features>

View file

@ -26,7 +26,7 @@ Q- What did 0 say to 8? A- Nice Belt!
http http
</server> </server>
# we're actually more interested in any compression support but this is the # we are actually more interested in any compression support but this is the
# best we can do right now # best we can do right now
<features> <features>
libz libz

View file

@ -37,7 +37,7 @@ Funny-head: yesyes swsclose
http http
</server> </server>
<name> <name>
HTTP with cookie using host name 'moo' HTTP with cookie using hostname 'moo'
</name> </name>
<command> <command>
-x http://%HOSTIP:%HTTPPORT http://moo/we/want/%TESTNUMBER -b none http://moo/we/want/%TESTNUMBER0002 -x http://%HOSTIP:%HTTPPORT http://moo/we/want/%TESTNUMBER -b none http://moo/we/want/%TESTNUMBER0002

View file

@ -32,7 +32,7 @@ REPLY SIZE 500 no such command
ftp ftp
</server> </server>
<name> <name>
FTP range download when SIZE doesn't work FTP range download when SIZE does not work
</name> </name>
<command> <command>
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER --range 3-6 ftp://%HOSTIP:%FTPPORT/%TESTNUMBER --range 3-6

View file

@ -12,7 +12,7 @@ HTTP GET
HTTP/1.0 404 BAD BOY swsclose HTTP/1.0 404 BAD BOY swsclose
Content-Type: text/html Content-Type: text/html
This silly page doesn't reaaaaaly exist so you should not get it. This silly page does not reaaaaaly exist so you should not get it.
</data> </data>
</reply> </reply>

View file

@ -8,7 +8,7 @@ Expect: 100-continue
</info> </info>
# Server-side # Server-side
<reply> <reply>
# 417 means the server didn't like the Expect header # 417 means the server did not like the Expect header
<data> <data>
HTTP/1.1 417 BAD swsbounce HTTP/1.1 417 BAD swsbounce
Date: Tue, 09 Nov 2010 14:49:00 GMT Date: Tue, 09 Nov 2010 14:49:00 GMT

View file

@ -12,7 +12,7 @@ HTTP GET
HTTP/1.0 404 BAD BOY swsclose HTTP/1.0 404 BAD BOY swsclose
Content-Type: text/html Content-Type: text/html
This silly page doesn't reaaaaaly exist so you should not get it. This silly page does not reaaaaaly exist so you should not get it.
</data> </data>
</reply> </reply>

View file

@ -26,7 +26,7 @@ Connection: close
http http
</server> </server>
<name> <name>
Empty user name provided in URL Empty username provided in URL
</name> </name>
<command> <command>
http://:example@%HOSTIP:%HTTPPORT/%TESTNUMBER http://:example@%HOSTIP:%HTTPPORT/%TESTNUMBER

View file

@ -32,7 +32,7 @@ dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
ftp ftp
</server> </server>
<name> <name>
pick netrc password based on user name in URL pick netrc password based on username in URL
</name> </name>
<command> <command>

View file

@ -40,7 +40,7 @@ local-http
<command> <command>
-4 http://curlmachine.localhost:%HTTPPORT/%TESTNUMBER -4 http://curlmachine.localhost:%HTTPPORT/%TESTNUMBER
</command> </command>
# Ensure that we're running on localhost # Ensure that we are running on localhost
</client> </client>
# #

View file

@ -13,7 +13,7 @@ URL
http http
</server> </server>
<name> <name>
65536 bytes long host name in URL 65536 bytes long hostname in URL
</name> </name>
<file name="%LOGDIR/input%TESTNUM"> <file name="%LOGDIR/input%TESTNUM">
url = http://%repeat[65536 x a]%/399 url = http://%repeat[65536 x a]%/399

View file

@ -29,7 +29,7 @@ SSL
https https
</server> </server>
<name> <name>
HTTPS GET with very long request header HTTPS GET with 49 KB long request header
</name> </name>
# 14 characters repeated 3500 times makes 49000 bytes # 14 characters repeated 3500 times makes 49000 bytes
<file name="%LOGDIR/file%TESTNUMBER"> <file name="%LOGDIR/file%TESTNUMBER">

View file

@ -34,7 +34,7 @@ Debug
http http
</server> </server>
<name> <name>
alt-svc using host name with trailing dot in URL alt-svc using hostname with trailing dot in URL
</name> </name>
<setenv> <setenv>
# make Debug-curl accept Alt-Svc over plain HTTP # make Debug-curl accept Alt-Svc over plain HTTP

Some files were not shown because too many files have changed in this diff Show more