tests: remove leading spaces from some tags

The threee tags `<name>`, `</name>` and `<command>` were frequently used
with a leading space that this removes. The reason this habbit is so
widespread in testcases is probably that they have been copy and pasted.

Hence, fixing them all now might curb this practice from now on.

Closes #12028
This commit is contained in:
Daniel Stenberg 2023-10-04 11:35:54 +02:00
parent 1b9becb5d9
commit 3fd80c7b59
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1245 changed files with 3546 additions and 3546 deletions

View File

@ -31,10 +31,10 @@ Funny-head: yesyes
<server>
http
</server>
<name>
<name>
HTTP GET
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
</command>
</client>

View File

@ -22,10 +22,10 @@ blablabla
<server>
http
</server>
<name>
<name>
simple HTTP PUT from file
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -T %LOGDIR/test%TESTNUMBER.txt
</command>
<file name="%LOGDIR/test%TESTNUMBER.txt">

View File

@ -32,10 +32,10 @@ dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
<server>
ftp
</server>
<name>
<name>
FTP dir list PASV
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/test-%TESTNUMBER/
</command>
</client>

View File

@ -20,10 +20,10 @@ NOBODY
<server>
ftp
</server>
<name>
<name>
FTP dir list PASV with -I
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER/ -I
</command>
</client>

View File

@ -68,10 +68,10 @@ http
crypto
proxy
</features>
<name>
<name>
HTTP POST --digest with PUT and resumed upload and modified method
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u auser:apasswd --digest -T %LOGDIR/%TESTNUMBER -x http://%HOSTIP:%HTTPPORT -C 2 -X GET
</command>
<file name="%LOGDIR/%TESTNUMBER">

View File

@ -67,10 +67,10 @@ http
crypto
proxy
</features>
<name>
<name>
HTTP PUT with Digest auth, resumed upload and modified method, twice
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload1 -T %LOGDIR/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload2 -T %LOGDIR/%TESTNUMBER -u auser:apasswd --digest -x http://%HOSTIP:%HTTPPORT -C 2 -X GET
</command>
<file name="%LOGDIR/%TESTNUMBER">

View File

@ -23,10 +23,10 @@ REPLY CWD 250 CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
<server>
ftp
</server>
<name>
<name>
FTP with excessively large server command response line
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/path/%TESTNUMBER
</command>
</client>

View File

@ -35,10 +35,10 @@ proxy
<server>
http
</server>
<name>
<name>
HTTP GET with empty proxy
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --proxy ""
</command>
</client>

View File

@ -23,10 +23,10 @@ REPLY CWD 250-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
<server>
ftp
</server>
<name>
<name>
FTP with excessively large number of server command response lines
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/path/%TESTNUMBER
</command>
</client>

View File

@ -24,10 +24,10 @@ REPLY CWD 250-AAAAAAAAAAAAAAAAAAAAAAAAA\r\n250-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
<server>
ftp
</server>
<name>
<name>
FTP with excessively large number of server command response lines (boundary condition)
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/path/%TESTNUMBER
</command>
</client>

View File

@ -13,10 +13,10 @@ FAILURE
<server>
tftp
</server>
<name>
<name>
TFTP send with invalid permission on server
</name>
<command>
</name>
<command>
-T %LOGDIR/test%TESTNUMBER.txt tftp://%HOSTIP:%TFTPPORT//invalid-file -sS
</command>
<file name="%LOGDIR/test%TESTNUMBER.txt">

View File

@ -24,10 +24,10 @@ returned
<server>
tftp
</server>
<name>
<name>
TFTP retrieve with --local-port
</name>
<command>
</name>
<command>
tftp://%HOSTIP:%TFTPPORT//%TESTNUMBER --local-port 44444-45444
</command>
</client>

View File

@ -30,10 +30,10 @@ dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
<server>
ftp
</server>
<name>
<name>
FTP dir list, PORT with specified IP
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/ -P %CLIENTIP
</command>
</client>

View File

@ -32,10 +32,10 @@ dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
<server>
ftp
</server>
<name>
<name>
FTP dir list nocwd
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT//list/this/path/%TESTNUMBER/ ftp://%HOSTIP:%FTPPORT//list/this/path/%TESTNUMBER/ --ftp-method nocwd
</command>
</client>

View File

@ -45,10 +45,10 @@ body
<server>
http
</server>
<name>
<name>
HTTP POST with 301 redirect
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/blah/%TESTNUMBER -L -d "moo"
</command>
</client>

View File

@ -45,10 +45,10 @@ body
<server>
http
</server>
<name>
<name>
HTTP POST with 301 redirect and --post301
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/blah/%TESTNUMBER -L -d "moo" --post301
</command>
</client>

View File

@ -16,10 +16,10 @@ curl-config
<server>
none
</server>
<name>
<name>
Compare curl --version with curl-config --protocols
</name>
<command>
</name>
<command>
--version
</command>
<postcheck>

View File

@ -16,10 +16,10 @@ curl-config
<server>
none
</server>
<name>
<name>
Compare curl --version with curl-config --features
</name>
<command>
</name>
<command>
--version
</command>
<postcheck>

View File

@ -24,10 +24,10 @@ Content-Length: 0
<server>
http
</server>
<name>
<name>
--data-urlencode
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --data-urlencode "my name is moo[]" --data-urlencode "y e s=s_i_r" --data-urlencode "v_alue@%LOGDIR/%TESTNUMBER.txt" --data-urlencode @%LOGDIR/%TESTNUMBER.txt
</command>
<file name="%LOGDIR/%TESTNUMBER.txt">

View File

@ -19,9 +19,9 @@ none
<features>
file
</features>
<name>
<name>
X-Y range on a file:// URL to stdout
</name>
</name>
<command option="no-include">
-r 1-4 file://localhost%FILE_PWD/%LOGDIR/test%TESTNUMBER.txt
</command>

View File

@ -20,9 +20,9 @@ none
<features>
file
</features>
<name>
<name>
0-Y range on a file:// URL to stdout
</name>
</name>
<command option="no-include">
-r 0-3 file://localhost%FILE_PWD/%LOGDIR/test%TESTNUMBER.txt
</command>

View File

@ -19,9 +19,9 @@ none
<features>
file
</features>
<name>
<name>
X-X range on a file:// URL to stdout
</name>
</name>
<command option="no-include">
-r 4-4 file://localhost%FILE_PWD/%LOGDIR/test%TESTNUMBER.txt
</command>

View File

@ -20,9 +20,9 @@ none
<features>
file
</features>
<name>
<name>
X- range on a file:// URL to stdout
</name>
</name>
<command option="no-include">
-r 7- file://localhost%FILE_PWD/%LOGDIR/test%TESTNUMBER.txt
</command>

View File

@ -26,10 +26,10 @@ REPLY EPSV 500 no such command
<server>
ftp
</server>
<name>
<name>
FTP RETR PASV
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
</command>

View File

@ -20,9 +20,9 @@ none
<features>
file
</features>
<name>
<name>
-Y range on a file:// URL to stdout
</name>
</name>
<command option="no-include">
-r -9 file://localhost%FILE_PWD/%LOGDIR/test%TESTNUMBER.txt
</command>

View File

@ -16,10 +16,10 @@ curl-config
<server>
none
</server>
<name>
<name>
Compare curl --version with curl-config --version
</name>
<command>
</name>
<command>
--version
</command>
<postcheck>

View File

@ -16,10 +16,10 @@ curl-config
<server>
none
</server>
<name>
<name>
Compare curl --version with curl-config --vernum
</name>
<command>
</name>
<command>
--version
</command>
<postcheck>

View File

@ -71,10 +71,10 @@ If this is received, the location following worked
<server>
http
</server>
<name>
<name>
HTTP Location: following with cookies
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -L -c %LOGDIR/jar%TESTNUMBER
</command>
<features>

View File

@ -71,10 +71,10 @@ If this is received, the location following worked
<server>
http
</server>
<name>
<name>
HTTP Location: following with command-line and server cookies
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -L -c %LOGDIR/jar%TESTNUMBER -b forcedcookie=yes
</command>
<features>

View File

@ -19,10 +19,10 @@ manual
<server>
none
</server>
<name>
<name>
curl --manual
</name>
<command>
</name>
<command>
--manual
</command>
# Search for these two sentinel lines in the manual output; if they are found,

View File

@ -16,10 +16,10 @@
<server>
none
</server>
<name>
<name>
curl --help
</name>
<command>
</name>
<command>
--help
</command>
# Search for these two sentinel lines in the help output; if they are found,

View File

@ -41,10 +41,10 @@ works
http
ftp
</server>
<name>
<name>
HTTP Location: redirect to FTP URL
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 -L
</command>
</client>

View File

@ -26,9 +26,9 @@ This server reply is for testing a simple Location: following
<server>
http
</server>
<name>
<name>
HTTP Location: and 'redirect_url' check
</name>
</name>
<command>
http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER -w '%{redirect_url} %{url} %{exitcode} %{errormsg}\n'
</command>

View File

@ -23,10 +23,10 @@ works
<server>
ftp
</server>
<name>
<name>
FTP RETR PORT with CWD
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER -P -
</command>
</client>

View File

@ -63,10 +63,10 @@ http
!SSPI
crypto
</features>
<name>
<name>
HTTP PUT with --anyauth authorization (picking Digest)
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -T %LOGDIR/put%TESTNUMBER -u testuser:testpass --anyauth
</command>
<file name="%LOGDIR/put%TESTNUMBER">

View File

@ -49,10 +49,10 @@ If this is received, the location following worked
<server>
http
</server>
<name>
<name>
HTTP Location: following to a query string
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/want/this/%TESTNUMBER -L
</command>
</client>

View File

@ -31,10 +31,10 @@ Funny-head: yesyes
<server>
http
</server>
<name>
<name>
HTTP HEAD with --range
</name>
<command>
</name>
<command>
--range 1-3 --head http://%HOSTIP:%HTTPPORT/%TESTNUMBER
</command>
</client>

View File

@ -36,10 +36,10 @@ Funny-head: yesyes
<server>
http
</server>
<name>
<name>
HTTP GET with 102 response!
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
</command>
</client>

View File

@ -34,16 +34,16 @@ LC_CTYPE=en_US.UTF-8
<precheck>
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
</precheck>
<name>
<name>
HTTP over proxy with malformatted IDN host name
</name>
</name>
# This host name contains an invalid UTF-8 byte sequence that can't be
# converted into an IDN name
<stdin>
url = "http://invalid-utf8-â<>.local/page/%TESTNUMBER"
</stdin>
<command>
<command>
-K - -x %HOSTIP:%NOLISTENPORT
</command>
</client>

View File

@ -32,10 +32,10 @@ LC_CTYPE=en_US.UTF-8
<precheck>
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
</precheck>
<name>
<name>
HTTP over proxy with too long IDN host name
</name>
<command>
</name>
<command>
http://too-long-IDN-name-cürl-rüles-la-la-la-dee-da-flooby-nooby.local/page/%TESTNUMBER -x %HOSTIP:%NOLISTENPORT
</command>
</client>

View File

@ -27,10 +27,10 @@ REPLY EPSV 500 no such command
<server>
ftp
</server>
<name>
<name>
FTP download resume from end of file
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -C -
</command>
<file name="%LOGDIR/curl%TESTNUMBER.out">

View File

@ -27,10 +27,10 @@ REPLY EPSV 500 no such command
<server>
ftp
</server>
<name>
<name>
FTP download resume from end of empty file
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -C -
</command>
<file name="%LOGDIR/curl%TESTNUMBER.out">

View File

@ -19,10 +19,10 @@ Resume
<server>
ftp
</server>
<name>
<name>
FTP PASV upload resume from end of file
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -T %LOGDIR/upload%TESTNUMBER -C -
</command>
<file name="%LOGDIR/upload%TESTNUMBER">

View File

@ -19,10 +19,10 @@ Resume
<server>
ftp
</server>
<name>
<name>
FTP PASV upload resume from end of empty file
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -T %LOGDIR/upload%TESTNUMBER -C -
</command>
<file name="%LOGDIR/upload%TESTNUMBER">

View File

@ -17,10 +17,10 @@ NOBODY
<server>
ftp
</server>
<name>
<name>
FTP --head to get file size only
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER --head
</command>
</client>

View File

@ -43,10 +43,10 @@ Content-Length: 0
<server>
http
</server>
<name>
<name>
HTTP GET with resume from end of entirely-downloaded file
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C -
</command>
<file name="%LOGDIR/curl%TESTNUMBER.out">

View File

@ -28,9 +28,9 @@ Content-Type: text/html
<server>
http
</server>
<name>
<name>
HTTP PUT with resume from end of already-uploaded file
</name>
</name>
<file name="%LOGDIR/test%TESTNUMBER.txt">
012345678
012345678
@ -43,7 +43,7 @@ HTTP PUT with resume from end of already-uploaded file
012345678
012345678
</file>
<command>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -T%LOGDIR/test%TESTNUMBER.txt -C -
</command>
</client>

View File

@ -55,10 +55,10 @@ Content-Type: text/plain
<server>
http
</server>
<name>
<name>
HTTP GET beyond end of entirely-downloaded file, no server resume
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C 200
</command>
<file name="%LOGDIR/curl%TESTNUMBER.out">

View File

@ -54,10 +54,10 @@ Content-Range: bytes 40-99/100
<server>
http
</server>
<name>
<name>
HTTP GET with resume from end of file
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C -
</command>
<file name="%LOGDIR/curl%TESTNUMBER.out">

View File

@ -28,10 +28,10 @@ large_file
<server>
ftp
</server>
<name>
<name>
FTP download large file info with -I
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/blalbla/%TESTNUMBER -I
</command>
</client>

View File

@ -28,10 +28,10 @@ Content-Type: text/plain
<server>
http
</server>
<name>
<name>
HTTP GET with numeric localhost --interface
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --interface %CLIENTIP
</command>
</client>

View File

@ -32,10 +32,10 @@ ipv6
<server>
http-ipv6
</server>
<name>
<name>
HTTP-IPv6 GET with numeric localhost --interface
</name>
<command>
</name>
<command>
-g "http://%HOST6IP:%HTTP6PORT/%TESTNUMBER" --interface ::1
</command>
# --interface doesn't accept an address surrounded by [] so %CLIENT6IP is out

View File

@ -34,10 +34,10 @@ dr-xr-xr-x 5 0 1 512 Oct 1 1997 usr
<server>
ftp
</server>
<name>
<name>
FTP dir list PASV with localhost --interface
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/ --interface %CLIENTIP
</command>
</client>

View File

@ -39,10 +39,10 @@ ipv6
<server>
ftp-ipv6
</server>
<name>
<name>
FTP-IPv6 dir list PASV with localhost --interface
</name>
<command>
</name>
<command>
-g "ftp://%HOST6IP:%FTP6PORT/" --interface ::1
</command>
# --interface doesn't accept an address surrounded by [] so %CLIENT6IP is out

View File

@ -24,10 +24,10 @@ returned
<server>
tftp
</server>
<name>
<name>
TFTP retrieve with localhost --interface
</name>
<command>
</name>
<command>
tftp://%HOSTIP:%TFTPPORT//%TESTNUMBER --interface %CLIENTIP
</command>
</client>

View File

@ -27,10 +27,10 @@ REPLY EPSV 500 no such command
<server>
ftp
</server>
<name>
<name>
FTP user+password in URL and ASCII transfer
</name>
<command>
</name>
<command>
ftp://userdude:passfellow@%HOSTIP:%FTPPORT/%TESTNUMBER --use-ascii
</command>
</client>

View File

@ -35,10 +35,10 @@ ipv6
<server>
ftp-ipv6
</server>
<name>
<name>
FTP-IPv6 dir list, EPRT with specified IP
</name>
<command>
</name>
<command>
-g "ftp://%HOST6IP:%FTP6PORT/" -P ::1
</command>
# --interface doesn't accept an address surrounded by [] so %CLIENT6IP is out

View File

@ -52,10 +52,10 @@ If this is received, the location following worked
<server>
http
</server>
<name>
<name>
HTTP PUT with Location: following
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -L -T %LOGDIR/test%TESTNUMBER.txt
</command>
<file name="%LOGDIR/test%TESTNUMBER.txt">

View File

@ -48,10 +48,10 @@ If this is received, the location following worked
<server>
http
</server>
<name>
<name>
HTTP 1.0 PUT with Location: following
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -0 -L -T %LOGDIR/test%TESTNUMBER.txt
</command>
<file name="%LOGDIR/test%TESTNUMBER.txt">

View File

@ -57,10 +57,10 @@ Mime
<server>
http
</server>
<name>
<name>
HTTP RFC1867-type formposting from file with Location: following
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -L -F name=daniel -F tool=curl -F file=@%LOGDIR/test%TESTNUMBER.txt
</command>
# We create this file before the command is invoked!

View File

@ -44,13 +44,13 @@ body
<server>
http
</server>
<name>
<name>
HTTP POST from file with 301 redirect and --post301
</name>
</name>
<file name="%LOGDIR/test%TESTNUMBER.txt">
field=data
</file>
<command>
<command>
http://%HOSTIP:%HTTPPORT/blah/%TESTNUMBER -L -d @%LOGDIR/test%TESTNUMBER.txt --post301
</command>
</client>

View File

@ -32,10 +32,10 @@ Connection: close
http
ftp
</server>
<name>
<name>
HTTP PUT Location: redirect to FTP URL
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -L -T %LOGDIR/test%TESTNUMBER.txt
</command>
<file name="%LOGDIR/test%TESTNUMBER.txt">

View File

@ -55,10 +55,10 @@ ipv6
http
http-ipv6
</server>
<name>
<name>
HTTP follow redirect from IPv4 to IPv6 with scope
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/we/are/all/twits/%TESTNUMBER -L
</command>
<precheck>

View File

@ -26,10 +26,10 @@ Range
<server>
ftp
</server>
<name>
<name>
FTP retrieve a byte-range relative to end of file
</name>
<command>
</name>
<command>
-r -12 ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
</command>
</client>

View File

@ -29,10 +29,10 @@ in the request
<server>
http
</server>
<name>
<name>
HTTP range relative to end of file
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -r -101
</command>
</client>

View File

@ -31,10 +31,10 @@ proxy
<server>
http
</server>
<name>
<name>
HTTP CONNECT with proxytunnel to unsupported FTP URL
</name>
<command>
</name>
<command>
ftp://test-number:%TESTNUMBER/wanted/page -p -x %HOSTIP:%HTTPPORT
</command>
</client>

View File

@ -25,10 +25,10 @@ works
<server>
ftp
</server>
<name>
<name>
FTP GET with type=A style ASCII URL using %20 codes
</name>
<command>
</name>
<command>
"ftp://%HOSTIP:%FTPPORT//path%20with%20%20spaces//and%20things2/%TESTNUMBER;type=A"
</command>
</client>

View File

@ -871,10 +871,10 @@ http
crypto
proxy
</features>
<name>
<name>
HTTP proxy CONNECT auth Digest, large headers and data
</name>
<command>
</name>
<command>
http://test.remote.haxx.se.%TESTNUMBER:8990/path/%TESTNUMBER0002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-digest --proxytunnel
</command>
</client>

View File

@ -876,10 +876,10 @@ http
crypto
proxy
</features>
<name>
<name>
HTTP proxy CONNECT auth Digest, large headers and chunked data
</name>
<command>
</name>
<command>
http://test.remote.haxx.se.%TESTNUMBER:8990/path/%TESTNUMBER0002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-digest --proxytunnel
</command>
</client>

View File

@ -24,10 +24,10 @@ REPLY CWD 250-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
<server>
ftp
</server>
<name>
<name>
FTP with excessively long server command response lines, boundary condition
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/path/%TESTNUMBER
</command>
</client>

View File

@ -22,12 +22,12 @@ none
file
large_file
</features>
<name>
<name>
Invalid large X- range on a file://
</name>
</name>
# This range value is 2**32+7, which will be truncated to the valid value 7
# if the large file support is not working correctly
<command>
<command>
-r 4294967303- file://localhost%FILE_PWD/%LOGDIR/test%TESTNUMBER.txt
</command>
<file name="%LOGDIR/test%TESTNUMBER.txt">

View File

@ -31,10 +31,10 @@ still ok
<server>
http
</server>
<name>
<name>
HTTP PUT twice
</name>
<command>
</name>
<command>
-H "Expect:" -T %LOGDIR/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload1 -T %LOGDIR/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002.upload2
</command>
<file name="%LOGDIR/%TESTNUMBER">

View File

@ -32,10 +32,10 @@ still ok
<server>
http
</server>
<name>
<name>
HTTP PUT with one file but two URLs
</name>
<command>
</name>
<command>
-H "Expect:" -T %LOGDIR/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload1 http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002.url2
</command>
<file name="%LOGDIR/%TESTNUMBER">

View File

@ -31,10 +31,10 @@ second
<server>
http
</server>
<name>
<name>
HTTP --dump-header - with two URLs
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER0001 --dump-header -
</command>
</client>

View File

@ -49,10 +49,10 @@ If this is received, the location following worked
<server>
http
</server>
<name>
<name>
HTTP Location: following with auto-referer
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER --silent --location --referer "firstone.html;auto" --write-out "%{stderr}|%{referer}|"
</command>
</client>

View File

@ -28,7 +28,7 @@ http
<name>
HTTP PUT from stdin
</name>
<command>
<command>
http://%HOSTIP:%HTTPPORT/bzz/%TESTNUMBER -T -
</command>
<stdin>

View File

@ -19,7 +19,7 @@ http
<name>
HTTP 1.0 PUT from stdin with no content length
</name>
<command>
<command>
http://%HOSTIP:%HTTPPORT/bzz/%TESTNUMBER -T - -0
</command>
<stdin>

View File

@ -12,9 +12,9 @@ STOR
<server>
ftp
</server>
<name>
<name>
FTP PASV upload file
</name>
</name>
<file name="%LOGDIR/test%TESTNUMBER.txt">
data
to
@ -23,7 +23,7 @@ that FTP
works
so does it?
</file>
<command>
<command>
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -T %LOGDIR/test%TESTNUMBER.txt
</command>
</client>

View File

@ -28,10 +28,10 @@ skip: 2300
<server>
http
</server>
<name>
<name>
HTTP POST with server closing connection before (all) data is received
</name>
<command>
</name>
<command>
-d @%LOGDIR/input%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER -H "Expect: 100-continue"
</command>
<file name="%LOGDIR/input%TESTNUMBER">

View File

@ -69,10 +69,10 @@ http
!SSPI
crypto
</features>
<name>
<name>
Downgraded HTTP PUT to HTTP 1.0 with authorization
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -T %LOGDIR/put%TESTNUMBER -u testuser:testpass --anyauth
</command>
<file name="%LOGDIR/put%TESTNUMBER">

View File

@ -36,10 +36,10 @@ http
<features>
crypto
</features>
<name>
<name>
HTTP chunked PUT to HTTP 1.0 server with authorization
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -T - -u testuser:testpass --anyauth
</command>
<stdin>

View File

@ -30,10 +30,10 @@ Connection: close
<server>
http
</server>
<name>
<name>
HTTP chunked PUT to HTTP 1.0 server with redirect
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -T - -L
</command>
<stdin>

View File

@ -36,10 +36,10 @@ wait 1
<server>
http
</server>
<name>
<name>
HTTP downgrade to HTTP/1.0 on second request
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/wantmore/%TESTNUMBER0001
</command>
</client>

View File

@ -48,10 +48,10 @@ Content-Length: 0
<server>
http
</server>
<name>
<name>
HTTP PUT with --anyauth authorization (picking Basic)
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -T %LOGDIR/put%TESTNUMBER -u testuser:testpass --anyauth
</command>
<file name="%LOGDIR/put%TESTNUMBER">

View File

@ -45,10 +45,10 @@ body
<server>
http
</server>
<name>
<name>
HTTP POST with 302 redirect and --post302
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/blah/%TESTNUMBER -L -d "moo" --post302
</command>
</client>

View File

@ -46,10 +46,10 @@ http
ftp
proxy
</features>
<name>
<name>
FTP over HTTP proxy with downgrade to HTTP 1.0
</name>
<command>
</name>
<command>
-x %HOSTIP:%HTTPPORT ftp://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER ftp://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER0002
</command>
</client>

View File

@ -39,10 +39,10 @@ contents
http
http-proxy
</server>
<name>
<name>
HTTP 1.0 CONNECT with proxytunnel and downgrade GET to HTTP/1.0
</name>
<command>
</name>
<command>
--proxy1.0 %HOSTIP:%PROXYPORT -p http://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER
</command>
<features>

View File

@ -45,10 +45,10 @@ http
!SSPI
crypto
</features>
<name>
<name>
HTTP retry after closed connection and empty response
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --digest
</command>
</client>

View File

@ -17,10 +17,10 @@ STOR
<server>
ftp
</server>
<name>
<name>
FTP PORT upload with CWD
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/CWD/STOR/RETR/%TESTNUMBER -T %LOGDIR/upload%TESTNUMBER -P -
</command>
<file name="%LOGDIR/upload%TESTNUMBER">

View File

@ -26,10 +26,10 @@ This server reply is for testing a simple Location: following
<server>
http
</server>
<name>
<name>
HTTP Location: on two URLs 'redirect_url' check
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER -w '%{redirect_url}\n'
</command>
</client>

View File

@ -34,10 +34,10 @@ This second URL does not have a location
<server>
http
</server>
<name>
<name>
HTTP no Location: on second URL 'redirect_url' check
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER0002 -w '%{redirect_url}\n'
</command>
</client>

View File

@ -28,10 +28,10 @@ Content-Type: text/plain
<server>
http
</server>
<name>
<name>
HTTP GET with localhost --interface
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -4 --interface 127.0.0.1
</command>
<precheck>

View File

@ -32,10 +32,10 @@ ipv6
<server>
http-ipv6
</server>
<name>
<name>
HTTP-IPv6 GET with ip6-localhost --interface
</name>
<command>
</name>
<command>
-g "http://%HOST6IP:%HTTP6PORT/%TESTNUMBER" --interface ip6-localhost
</command>
<precheck>

View File

@ -23,10 +23,10 @@ http
<server>
none
</server>
<name>
<name>
HTTP GET with invalid --interface
</name>
<command>
</name>
<command>
http://%HOSTIP:%NOLISTENPORT/%TESTNUMBER --interface non-existing-host.haxx.se.
</command>
</client>

View File

@ -25,10 +25,10 @@ ipv6
<server>
none
</server>
<name>
<name>
HTTP-IPv6 GET with invalid --interface
</name>
<command>
</name>
<command>
-g "http://%HOST6IP:%NOLISTENPORT/%TESTNUMBER" --interface non-existing-host.haxx.se.
</command>
# Ensure the IPv6 stack is operational before running this test (other tests

View File

@ -86,10 +86,10 @@ ftp
<killserver>
ftp
</killserver>
<name>
<name>
FTP download with strict timeout and slow data transfer
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -m 7
</command>
</client>

View File

@ -74,10 +74,10 @@ contents
<server>
http
</server>
<name>
<name>
HTTP, proxy with --anyauth and Location: to new host
</name>
<command>
</name>
<command>
http://first.host.it.is/we/want/that/page/%TESTNUMBER1000 -x %HOSTIP:%HTTPPORT --user iam:myself --location --anyauth
</command>
<features>

View File

@ -75,10 +75,10 @@ contents
<server>
http
</server>
<name>
<name>
HTTP, proxy with --anyauth and Location: to new host using location-trusted
</name>
<command>
</name>
<command>
http://first.host.it.is/we/want/that/page/%TESTNUMBER1000 -x %HOSTIP:%HTTPPORT --user iam:myself --location-trusted --anyauth
</command>
<features>

View File

@ -39,10 +39,10 @@ bigger monster
<server>
http
</server>
<name>
<name>
HTTP GET --write-out with redirected fetch
</name>
<command>
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w "%{num_connects}\n%{num_redirects}\n%{size_download}\n%{url_effective}\n%{content_type}\n%{response_code}\n" -L
</command>
</client>

View File

@ -17,10 +17,10 @@ APPE
<server>
ftp
</server>
<name>
<name>
FTP PASV upload append
</name>
<command>
</name>
<command>
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -T %LOGDIR/upload%TESTNUMBER --append
</command>
<file name="%LOGDIR/upload%TESTNUMBER">

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