mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:01:41 +03:00
tests: avoid hard-coded CRLFs in more sections
- `reply/data*`, `verify/stdout`, `verify/stderr`, `verify/file*`,
`verify/proxy`:
- make `crlf="yes"` force CRLF to all lines, instead of just applying
to HTTP protocol headers.
- add support for `crlf="headers"` that only converts HTTP protocol
header lines to CRLF. (previously done via `crlf="yes"`.)
- use `crlf="headers"` where possible.
- `reply/connect*`:
- add support for `crlf="yes"` and `crlf="headers"`.
- use them where possible.
- `client/file*`, `client/stdin`:
- add support for `crlf="yes"`.
- use it where possible.
- `reply/data*`, `verify/protocol`:
- replace existing uses of `crlf="yes"` with `crlf="headers`" where it
does not change the result.
Reducing the number of `tests/data/test*`:
- CRLF newlines from 10295 to 1985. (119985 lines total)
- files with mixed newlines from 656 to 113. (1890 files total)
After this patch there remain 141 sections with mixed newlines, where
the mixing is not split between headers/non-headers. There is no obvious
pattern here. Some of the CRLF uses might be accidental, or
non-significant. They will be tackled in a future patch.
Follow-up to 6cf3d7b1b1 #19318
Follow-up to 4d2a05d3fe #19284
Closes #19313
This commit is contained in:
parent
6adefe8ad0
commit
63e9721b63
1096 changed files with 10495 additions and 10422 deletions
|
|
@ -241,7 +241,7 @@ similar.
|
|||
|
||||
## `<reply>`
|
||||
|
||||
### `<data [nocheck="yes"] [sendzero="yes"] [hex="yes"] [nonewline="yes"] [crlf="yes"]>`
|
||||
### `<data [nocheck="yes"] [sendzero="yes"] [hex="yes"] [nonewline="yes"] [crlf="yes|headers"]>`
|
||||
|
||||
data to be sent to the client on its request and later verified that it
|
||||
arrived safely. Set `nocheck="yes"` to prevent the test script from verifying
|
||||
|
|
@ -269,16 +269,19 @@ used as "raw" data.
|
|||
`nonewline=yes` means that the last byte (the trailing newline character)
|
||||
should be cut off from the data before sending or comparing it.
|
||||
|
||||
`crlf=yes` forces *header* newlines to become CRLF even if not written so in
|
||||
the source file. Note that this makes runtests.pl parse and "guess" what is a
|
||||
header and what is not in order to apply the CRLF line endings appropriately.
|
||||
`crlf=yes` forces the newlines to become CRLF even if not written so in the
|
||||
test.
|
||||
|
||||
`crlf=headers` forces *header* newlines to become CRLF even if not written so
|
||||
in the source file. Note that this makes runtests.pl parse and "guess" what is
|
||||
a header and what is not in order to apply the CRLF line endings appropriately.
|
||||
|
||||
For FTP file listings, the `<data>` section is be used *only* if you make sure
|
||||
that there has been a CWD done first to a directory named `test-[NUM]` where
|
||||
`NUM` is the test case number. Otherwise the ftp server cannot know from which
|
||||
test file to load the list content.
|
||||
|
||||
### `<dataNUM [crlf="yes"]>`
|
||||
### `<dataNUM [crlf="yes|headers"]>`
|
||||
|
||||
Send back this contents instead of the `<data>` one. The `NUM` is set by:
|
||||
|
||||
|
|
@ -297,15 +300,22 @@ to complete a transfer. The response to each request is found in its own data
|
|||
section. Validating the entire negotiation sequence can be done by specifying
|
||||
a `datacheck` section.
|
||||
|
||||
### `<connect>`
|
||||
### `<connect [crlf="yes|headers"]>`
|
||||
The connect section is used instead of the 'data' for all CONNECT
|
||||
requests. The remainder of the rules for the data section then apply but with
|
||||
a connect prefix.
|
||||
|
||||
`crlf=yes` forces the newlines to become CRLF even if not written so in the
|
||||
test.
|
||||
|
||||
`crlf=headers` forces *header* newlines to become CRLF even if not written so
|
||||
in the source file. Note that this makes runtests.pl parse and "guess" what is
|
||||
a header and what is not in order to apply the CRLF line endings appropriately.
|
||||
|
||||
### `<socks>`
|
||||
Address type and address details as logged by the SOCKS proxy.
|
||||
|
||||
### `<datacheck [mode="text"] [nonewline="yes"] [crlf="yes"]>`
|
||||
### `<datacheck [mode="text"] [nonewline="yes"] [crlf="yes|headers"]>`
|
||||
if the data is sent but this is what should be checked afterwards. If
|
||||
`nonewline=yes` is set, runtests cuts off the trailing newline from the data
|
||||
before comparing with the one actually received by the client.
|
||||
|
|
@ -313,7 +323,7 @@ before comparing with the one actually received by the client.
|
|||
Use the `mode="text"` attribute if the output is in text mode on platforms
|
||||
that have a text/binary difference.
|
||||
|
||||
### `<datacheckNUM [nonewline="yes"] [mode="text"] [crlf="yes"]>`
|
||||
### `<datacheckNUM [nonewline="yes"] [mode="text"] [crlf="yes|headers"]>`
|
||||
The contents of numbered `datacheck` sections are appended to the non-numbered
|
||||
one.
|
||||
|
||||
|
|
@ -613,13 +623,16 @@ parameter is the not negative integer number of seconds for the delay. This
|
|||
'delay' attribute is intended for specific test cases, and normally not
|
||||
needed.
|
||||
|
||||
### `<file name="%LOGDIR/filename" [nonewline="yes"]>`
|
||||
### `<file name="%LOGDIR/filename" [nonewline="yes"][crlf="yes"]>`
|
||||
This creates the named file with this content before the test case is run,
|
||||
which is useful if the test case needs a file to act on.
|
||||
|
||||
If `nonewline="yes"` is used, the created file gets the final newline stripped
|
||||
off.
|
||||
|
||||
`crlf=yes` forces the newlines to become CRLF even if not written so in the
|
||||
test.
|
||||
|
||||
### `<file1>`
|
||||
1 to 4 can be appended to 'file' to create more files.
|
||||
|
||||
|
|
@ -629,12 +642,15 @@ off.
|
|||
|
||||
### `<file4>`
|
||||
|
||||
### `<stdin [nonewline="yes"]>`
|
||||
### `<stdin [nonewline="yes"][crlf="yes"]>`
|
||||
Pass this given data on stdin to the tool.
|
||||
|
||||
If `nonewline` is set, we cut off the trailing newline of this given data
|
||||
before comparing with the one actually received by the client
|
||||
|
||||
`crlf=yes` forces the newlines to become CRLF even if not written so in the
|
||||
test.
|
||||
|
||||
## `<disable>`
|
||||
|
||||
If `test-duphandle` is a listed item here, this is not run when
|
||||
|
|
@ -677,14 +693,14 @@ test.
|
|||
in the source file. Note that this makes runtests.pl parse and "guess" what is
|
||||
a header and what is not in order to apply the CRLF line endings appropriately.
|
||||
|
||||
### `<proxy [nonewline="yes"][crlf="yes"]>`
|
||||
### `<proxy [nonewline="yes"][crlf="yes|headers"]>`
|
||||
|
||||
The protocol dump curl should transmit to an HTTP proxy (when the http-proxy
|
||||
server is used), if `nonewline` is set, we cut off the trailing newline of
|
||||
this given data before comparing with the one actually sent by the client The
|
||||
`<strip>` and `<strippart>` rules are applied before comparisons are made.
|
||||
|
||||
### `<stderr [mode="text"] [nonewline="yes"] [crlf="yes"]>`
|
||||
### `<stderr [mode="text"] [nonewline="yes"] [crlf="yes|headers"]>`
|
||||
This verifies that this data was passed to stderr.
|
||||
|
||||
Use the mode="text" attribute if the output is in text mode on platforms that
|
||||
|
|
@ -693,10 +709,14 @@ have a text/binary difference.
|
|||
`crlf=yes` forces the newlines to become CRLF even if not written so in the
|
||||
test.
|
||||
|
||||
`crlf=headers` forces *header* newlines to become CRLF even if not written so
|
||||
in the source file. Note that this makes runtests.pl parse and "guess" what is
|
||||
a header and what is not in order to apply the CRLF line endings appropriately.
|
||||
|
||||
If `nonewline` is set, we cut off the trailing newline of this given data
|
||||
before comparing with the one actually received by the client
|
||||
|
||||
### `<stdout [mode="text"] [nonewline="yes"] [crlf="yes"] [loadfile="filename"]>`
|
||||
### `<stdout [mode="text"] [nonewline="yes"] [crlf="yes|headers"] [loadfile="filename"]>`
|
||||
This verifies that this data was passed to stdout.
|
||||
|
||||
Use the mode="text" attribute if the output is in text mode on platforms that
|
||||
|
|
@ -708,6 +728,10 @@ before comparing with the one actually received by the client
|
|||
`crlf=yes` forces the newlines to become CRLF even if not written so in the
|
||||
test.
|
||||
|
||||
`crlf=headers` forces *header* newlines to become CRLF even if not written so
|
||||
in the source file. Note that this makes runtests.pl parse and "guess" what is
|
||||
a header and what is not in order to apply the CRLF line endings appropriately.
|
||||
|
||||
`loadfile="filename"` makes loading the data from an external file.
|
||||
|
||||
### `<limit>`
|
||||
|
|
@ -718,11 +742,18 @@ that the set limits are not exceeded. Supported limits:
|
|||
Allocations: [number of allocation calls]
|
||||
Maximum allocated: [maximum concurrent memory allocated]
|
||||
|
||||
### `<file name="%LOGDIR/filename" [mode="text"]>`
|
||||
### `<file name="%LOGDIR/filename" [mode="text"] [crlf="yes|headers"]>`
|
||||
The file's contents must be identical to this after the test is complete. Use
|
||||
the mode="text" attribute if the output is in text mode on platforms that have
|
||||
a text/binary difference.
|
||||
|
||||
`crlf=yes` forces the newlines to become CRLF even if not written so in the
|
||||
test.
|
||||
|
||||
`crlf=headers` forces *header* newlines to become CRLF even if not written so
|
||||
in the source file. Note that this makes runtests.pl parse and "guess" what is
|
||||
a header and what is not in order to apply the CRLF line endings appropriately.
|
||||
|
||||
### `<file1>`
|
||||
1 to 4 can be appended to 'file' to compare more files.
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ HTTP GET
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data crlf="yes">
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
|
@ -42,7 +42,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -13,45 +13,45 @@ CUSTOMREQUEST
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 100 Continue
|
||||
Server: Microsoft-IIS/5.0
|
||||
Date: Sun, 03 Apr 2005 14:57:45 GMT
|
||||
X-Powered-By: ASP.NET
|
||||
|
||||
HTTP/1.1 401 authentication please
|
||||
Server: Microsoft-IIS/6.0
|
||||
WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 0
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 100 Continue
|
||||
Server: Microsoft-IIS/5.0
|
||||
Date: Sun, 03 Apr 2005 14:57:45 GMT
|
||||
X-Powered-By: ASP.NET
|
||||
|
||||
HTTP/1.1 401 authentication please
|
||||
Server: Microsoft-IIS/6.0
|
||||
WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 0
|
||||
|
||||
</data>
|
||||
<data1000>
|
||||
HTTP/1.1 200 A OK
|
||||
Server: Microsoft-IIS/6.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 3
|
||||
|
||||
<data1000 crlf="headers">
|
||||
HTTP/1.1 200 A OK
|
||||
Server: Microsoft-IIS/6.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 3
|
||||
|
||||
ok
|
||||
</data1000>
|
||||
|
||||
<datacheck>
|
||||
HTTP/1.1 100 Continue
|
||||
Server: Microsoft-IIS/5.0
|
||||
Date: Sun, 03 Apr 2005 14:57:45 GMT
|
||||
X-Powered-By: ASP.NET
|
||||
|
||||
HTTP/1.1 401 authentication please
|
||||
Server: Microsoft-IIS/6.0
|
||||
WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 0
|
||||
|
||||
HTTP/1.1 200 A OK
|
||||
Server: Microsoft-IIS/6.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 3
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 100 Continue
|
||||
Server: Microsoft-IIS/5.0
|
||||
Date: Sun, 03 Apr 2005 14:57:45 GMT
|
||||
X-Powered-By: ASP.NET
|
||||
|
||||
HTTP/1.1 401 authentication please
|
||||
Server: Microsoft-IIS/6.0
|
||||
WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 0
|
||||
|
||||
HTTP/1.1 200 A OK
|
||||
Server: Microsoft-IIS/6.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 3
|
||||
|
||||
ok
|
||||
</datacheck>
|
||||
|
||||
|
|
|
|||
|
|
@ -12,45 +12,45 @@ CUSTOMREQUEST
|
|||
</info>
|
||||
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 100 Continue
|
||||
Server: Microsoft-IIS/5.0
|
||||
Date: Sun, 03 Apr 2005 14:57:45 GMT
|
||||
X-Powered-By: ASP.NET
|
||||
|
||||
HTTP/1.1 401 authentication please
|
||||
Server: Microsoft-IIS/6.0
|
||||
WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 0
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 100 Continue
|
||||
Server: Microsoft-IIS/5.0
|
||||
Date: Sun, 03 Apr 2005 14:57:45 GMT
|
||||
X-Powered-By: ASP.NET
|
||||
|
||||
HTTP/1.1 401 authentication please
|
||||
Server: Microsoft-IIS/6.0
|
||||
WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 0
|
||||
|
||||
</data>
|
||||
<data1000>
|
||||
HTTP/1.1 200 A OK
|
||||
Server: Microsoft-IIS/6.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 3
|
||||
|
||||
<data1000 crlf="headers">
|
||||
HTTP/1.1 200 A OK
|
||||
Server: Microsoft-IIS/6.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 3
|
||||
|
||||
ok
|
||||
</data1000>
|
||||
|
||||
<datacheck>
|
||||
HTTP/1.1 100 Continue
|
||||
Server: Microsoft-IIS/5.0
|
||||
Date: Sun, 03 Apr 2005 14:57:45 GMT
|
||||
X-Powered-By: ASP.NET
|
||||
|
||||
HTTP/1.1 401 authentication please
|
||||
Server: Microsoft-IIS/6.0
|
||||
WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 0
|
||||
|
||||
HTTP/1.1 200 A OK
|
||||
Server: Microsoft-IIS/6.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 3
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 100 Continue
|
||||
Server: Microsoft-IIS/5.0
|
||||
Date: Sun, 03 Apr 2005 14:57:45 GMT
|
||||
X-Powered-By: ASP.NET
|
||||
|
||||
HTTP/1.1 401 authentication please
|
||||
Server: Microsoft-IIS/6.0
|
||||
WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 0
|
||||
|
||||
HTTP/1.1 200 A OK
|
||||
Server: Microsoft-IIS/6.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 3
|
||||
|
||||
ok
|
||||
</datacheck>
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER --proxy ""
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -18,26 +18,26 @@ connection-monitor
|
|||
</servercmd>
|
||||
|
||||
# this is returned first since we get no proxy-auth
|
||||
<connect1001>
|
||||
HTTP/1.1 407 Authorization Required to proxy me my dear
|
||||
Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
||||
Transfer-Encoding: chunked
|
||||
|
||||
20
|
||||
And you should ignore this data.
|
||||
FA0
|
||||
%repeat[4000 x X]%
|
||||
0
|
||||
|
||||
<connect1001 crlf="yes">
|
||||
HTTP/1.1 407 Authorization Required to proxy me my dear
|
||||
Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
||||
Transfer-Encoding: chunked
|
||||
|
||||
20
|
||||
And you should ignore this data.
|
||||
FA0
|
||||
%repeat[4000 x X]%
|
||||
0
|
||||
|
||||
</connect1001>
|
||||
|
||||
# This is supposed to be returned when the server gets the second
|
||||
# Authorization: NTLM line passed-in from the client
|
||||
<connect1002>
|
||||
HTTP/1.1 200 Things are fine in proxy land
|
||||
Server: Microsoft-IIS/5.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
|
||||
<connect1002 crlf="headers">
|
||||
HTTP/1.1 200 Things are fine in proxy land
|
||||
Server: Microsoft-IIS/5.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
|
||||
</connect1002>
|
||||
|
||||
# this is returned when we get a GET!
|
||||
|
|
|
|||
|
|
@ -9,32 +9,32 @@ followlocation
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 301 OK
|
||||
Location: moo.html&testcase=/%TESTNUMBER0002
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 0
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 301 OK
|
||||
Location: moo.html&testcase=/%TESTNUMBER0002
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 0
|
||||
|
||||
</data>
|
||||
<data2>
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Location: this should be ignored
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
<data2 crlf="headers">
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Location: this should be ignored
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
body
|
||||
</data2>
|
||||
<datacheck>
|
||||
HTTP/1.1 301 OK
|
||||
Location: moo.html&testcase=/%TESTNUMBER0002
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 0
|
||||
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Location: this should be ignored
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 301 OK
|
||||
Location: moo.html&testcase=/%TESTNUMBER0002
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 0
|
||||
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Location: this should be ignored
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
body
|
||||
</datacheck>
|
||||
</reply>
|
||||
|
|
|
|||
|
|
@ -9,32 +9,32 @@ followlocation
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 301 OK swsclose
|
||||
Location: moo.html&testcase=/%TESTNUMBER0002
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 301 OK swsclose
|
||||
Location: moo.html&testcase=/%TESTNUMBER0002
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
</data>
|
||||
<data2>
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Location: this should be ignored
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
<data2 crlf="headers">
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Location: this should be ignored
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
body
|
||||
</data2>
|
||||
<datacheck>
|
||||
HTTP/1.1 301 OK swsclose
|
||||
Location: moo.html&testcase=/%TESTNUMBER0002
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Location: this should be ignored
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 301 OK swsclose
|
||||
Location: moo.html&testcase=/%TESTNUMBER0002
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Location: this should be ignored
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
body
|
||||
</datacheck>
|
||||
</reply>
|
||||
|
|
|
|||
|
|
@ -10,11 +10,11 @@ HTTP POST
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 200 I am cool swsclose
|
||||
Server: Cool server/10.0
|
||||
Content-Length: 0
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 I am cool swsclose
|
||||
Server: Cool server/10.0
|
||||
Content-Length: 0
|
||||
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
|
|
|
|||
|
|
@ -13,31 +13,31 @@ NTLM
|
|||
# Server-side
|
||||
<reply>
|
||||
|
||||
<connect>
|
||||
HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
|
||||
Proxy-Authenticate: NTLM
|
||||
Content-Length: 16
|
||||
Connection: close
|
||||
|
||||
<connect crlf="headers">
|
||||
HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
|
||||
Proxy-Authenticate: NTLM
|
||||
Content-Length: 16
|
||||
Connection: close
|
||||
|
||||
data to discard
|
||||
</connect>
|
||||
|
||||
# this is returned first since we get no proxy-auth
|
||||
<connect1001>
|
||||
HTTP/1.1 407 Authorization Required to proxy me my dear
|
||||
Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
||||
Content-Length: 28
|
||||
|
||||
<connect1001 crlf="headers">
|
||||
HTTP/1.1 407 Authorization Required to proxy me my dear
|
||||
Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
||||
Content-Length: 28
|
||||
|
||||
27 bytes and newline to ign
|
||||
</connect1001>
|
||||
|
||||
# This is supposed to be returned when the server gets the second
|
||||
# Authorization: NTLM line passed-in from the client
|
||||
<connect1002>
|
||||
HTTP/1.1 200 Things are fine in proxy land
|
||||
Server: Microsoft-IIS/5.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
|
||||
<connect1002 crlf="headers">
|
||||
HTTP/1.1 200 Things are fine in proxy land
|
||||
Server: Microsoft-IIS/5.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
|
||||
</connect1002>
|
||||
|
||||
# this is returned when we get a GET!
|
||||
|
|
@ -106,7 +106,7 @@ http://test.remote.example.com.%TESTNUMBER:%HTTPPORT/path/%TESTNUMBER0002 --prox
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
CONNECT test.remote.example.com.%TESTNUMBER:%HTTPPORT HTTP/1.1
|
||||
Host: test.remote.example.com.%TESTNUMBER:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -10,57 +10,57 @@ cookies
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: ../data/%TESTNUMBER0002.txt
|
||||
Set-Cookie: firstcookie=want; path=/want/
|
||||
Content-Length: 69
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: ../data/%TESTNUMBER0002.txt
|
||||
Set-Cookie: firstcookie=want; path=/want/
|
||||
Content-Length: 69
|
||||
|
||||
This server reply is for testing a Location: following with cookies
|
||||
|
||||
</data>
|
||||
<data2>
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: ../want/%TESTNUMBER0003.txt
|
||||
Set-Cookie: nextcookie=data; path=/data/
|
||||
Content-Length: 69
|
||||
|
||||
<data2 crlf="headers">
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: ../want/%TESTNUMBER0003.txt
|
||||
Set-Cookie: nextcookie=data; path=/data/
|
||||
Content-Length: 69
|
||||
|
||||
This server reply is for testing a Location: following with cookies
|
||||
|
||||
</data2>
|
||||
<data3>
|
||||
HTTP/1.1 200 Followed here fine
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 52
|
||||
|
||||
<data3 crlf="headers">
|
||||
HTTP/1.1 200 Followed here fine
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 52
|
||||
|
||||
If this is received, the location following worked
|
||||
|
||||
</data3>
|
||||
<datacheck>
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: ../data/%TESTNUMBER0002.txt
|
||||
Set-Cookie: firstcookie=want; path=/want/
|
||||
Content-Length: 69
|
||||
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: ../want/%TESTNUMBER0003.txt
|
||||
Set-Cookie: nextcookie=data; path=/data/
|
||||
Content-Length: 69
|
||||
|
||||
HTTP/1.1 200 Followed here fine
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 52
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: ../data/%TESTNUMBER0002.txt
|
||||
Set-Cookie: firstcookie=want; path=/want/
|
||||
Content-Length: 69
|
||||
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: ../want/%TESTNUMBER0003.txt
|
||||
Set-Cookie: nextcookie=data; path=/data/
|
||||
Content-Length: 69
|
||||
|
||||
HTTP/1.1 200 Followed here fine
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 52
|
||||
|
||||
If this is received, the location following worked
|
||||
|
||||
</datacheck>
|
||||
|
|
@ -84,7 +84,7 @@ cookies
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /want/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -10,57 +10,57 @@ cookies
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: ../data/%TESTNUMBER0002.txt
|
||||
Set-Cookie: firstcookie=want; path=/want/
|
||||
Content-Length: 69
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: ../data/%TESTNUMBER0002.txt
|
||||
Set-Cookie: firstcookie=want; path=/want/
|
||||
Content-Length: 69
|
||||
|
||||
This server reply is for testing a Location: following with cookies
|
||||
|
||||
</data>
|
||||
<data2>
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: ../want/%TESTNUMBER0003.txt
|
||||
Set-Cookie: nextcookie=data; path=/data/
|
||||
Content-Length: 69
|
||||
|
||||
<data2 crlf="headers">
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: ../want/%TESTNUMBER0003.txt
|
||||
Set-Cookie: nextcookie=data; path=/data/
|
||||
Content-Length: 69
|
||||
|
||||
This server reply is for testing a Location: following with cookies
|
||||
|
||||
</data2>
|
||||
<data3>
|
||||
HTTP/1.1 200 Followed here fine
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 52
|
||||
|
||||
<data3 crlf="headers">
|
||||
HTTP/1.1 200 Followed here fine
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 52
|
||||
|
||||
If this is received, the location following worked
|
||||
|
||||
</data3>
|
||||
<datacheck>
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: ../data/%TESTNUMBER0002.txt
|
||||
Set-Cookie: firstcookie=want; path=/want/
|
||||
Content-Length: 69
|
||||
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: ../want/%TESTNUMBER0003.txt
|
||||
Set-Cookie: nextcookie=data; path=/data/
|
||||
Content-Length: 69
|
||||
|
||||
HTTP/1.1 200 Followed here fine
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 52
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: ../data/%TESTNUMBER0002.txt
|
||||
Set-Cookie: firstcookie=want; path=/want/
|
||||
Content-Length: 69
|
||||
|
||||
HTTP/1.1 301 This is a weirdo text message
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: ../want/%TESTNUMBER0003.txt
|
||||
Set-Cookie: nextcookie=data; path=/data/
|
||||
Content-Length: 69
|
||||
|
||||
HTTP/1.1 200 Followed here fine
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 52
|
||||
|
||||
If this is received, the location following worked
|
||||
|
||||
</datacheck>
|
||||
|
|
@ -84,7 +84,7 @@ cookies
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /want/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -13,16 +13,16 @@ FILE
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data1>
|
||||
HTTP/1.1 302 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/html
|
||||
Funny-head: yesyes
|
||||
Location: ftp://%HOSTIP:%FTPPORT/%TESTNUMBER0002
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
<data1 crlf="headers">
|
||||
HTTP/1.1 302 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/html
|
||||
Funny-head: yesyes
|
||||
Location: ftp://%HOSTIP:%FTPPORT/%TESTNUMBER0002
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
</data1>
|
||||
<data2>
|
||||
data
|
||||
|
|
@ -67,16 +67,16 @@ SIZE %TESTNUMBER0002
|
|||
RETR %TESTNUMBER0002
|
||||
QUIT
|
||||
</protocol>
|
||||
<stdout>
|
||||
HTTP/1.1 302 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/html
|
||||
Funny-head: yesyes
|
||||
Location: ftp://%HOSTIP:%FTPPORT/%TESTNUMBER0002
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
<stdout crlf="headers">
|
||||
HTTP/1.1 302 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/html
|
||||
Funny-head: yesyes
|
||||
Location: ftp://%HOSTIP:%FTPPORT/%TESTNUMBER0002
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
data
|
||||
to
|
||||
see
|
||||
|
|
|
|||
|
|
@ -11,12 +11,12 @@ followlocation
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data nocheck="yes">
|
||||
HTTP/1.1 301 This is a weirdo text message swsclose
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 62
|
||||
Connection: close
|
||||
|
||||
<data crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 301 This is a weirdo text message swsclose
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 62
|
||||
Connection: close
|
||||
|
||||
This server reply is for testing a simple Location: following
|
||||
</data>
|
||||
</reply>
|
||||
|
|
@ -36,19 +36,19 @@ http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER -w '%{redirect_url} %{url} %{ex
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /we/want/our/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
|
||||
</protocol>
|
||||
<stdout>
|
||||
HTTP/1.1 301 This is a weirdo text message swsclose
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 62
|
||||
Connection: close
|
||||
|
||||
<stdout crlf="headers">
|
||||
HTTP/1.1 301 This is a weirdo text message swsclose
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 62
|
||||
Connection: close
|
||||
|
||||
This server reply is for testing a simple Location: following
|
||||
http://%HOSTIP:%HTTPPORT/we/want/our/data/%TESTNUMBER0002.txt?coolsite=yes http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER 0%spc%
|
||||
</stdout>
|
||||
|
|
|
|||
|
|
@ -10,45 +10,45 @@ HTTP Digest auth
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 401 Authorization Required
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"
|
||||
Content-Length: 26
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 401 Authorization Required
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"
|
||||
Content-Length: 26
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
|
||||
This is not the real page
|
||||
</data>
|
||||
|
||||
# This is supposed to be returned when the server gets a
|
||||
# Authorization: Digest line passed-in from the client
|
||||
<data1000>
|
||||
HTTP/1.1 200 OK
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 23
|
||||
Connection: close
|
||||
|
||||
<data1000 crlf="headers">
|
||||
HTTP/1.1 200 OK
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 23
|
||||
Connection: close
|
||||
|
||||
This IS the real page!
|
||||
</data1000>
|
||||
|
||||
<datacheck>
|
||||
HTTP/1.1 401 Authorization Required
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"
|
||||
Content-Length: 26
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
|
||||
HTTP/1.1 200 OK
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 23
|
||||
Connection: close
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 401 Authorization Required
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"
|
||||
Content-Length: 26
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
|
||||
HTTP/1.1 200 OK
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 23
|
||||
Connection: close
|
||||
|
||||
This IS the real page!
|
||||
</datacheck>
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ http://%HOSTIP:%HTTPPORT/want/this/%TESTNUMBER -L
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /want/this/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ HTTP HEAD with --range
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
HEAD /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
Range: bytes=1-3
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -10,11 +10,11 @@ Resume
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 416 Invalid range
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 416 Invalid range
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
|
||||
</data>
|
||||
|
||||
# The file data that exists at the start of the test must be included in
|
||||
|
|
@ -65,7 +65,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C -
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
Range: bytes=100-
|
||||
|
|
|
|||
|
|
@ -11,15 +11,15 @@ Content-Range
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Accept-Ranges: bytes
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
Content-Type: text/html
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Accept-Ranges: bytes
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
Content-Type: text/html
|
||||
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
|
|
|
|||
|
|
@ -11,12 +11,12 @@ FAILURE
|
|||
# Server-side
|
||||
<reply>
|
||||
# Some servers (e.g. Apache 1.2) respond this way to an invalid byte range
|
||||
<data>
|
||||
HTTP/1.1 200 OK
|
||||
Connection: close
|
||||
Content-Length: 100
|
||||
Content-Type: text/plain
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 OK
|
||||
Connection: close
|
||||
Content-Length: 100
|
||||
Content-Type: text/plain
|
||||
|
||||
012345678
|
||||
012345678
|
||||
012345678
|
||||
|
|
@ -80,7 +80,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C 200
|
|||
<errorcode>
|
||||
33
|
||||
</errorcode>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
Range: bytes=200-
|
||||
|
|
|
|||
|
|
@ -9,14 +9,14 @@ Resume
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 206 Partial Content
|
||||
Date: Mon, 13 Nov 2007 13:41:09 GMT
|
||||
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
||||
Accept-Ranges: bytes
|
||||
Content-Length: 60
|
||||
Content-Range: bytes 40-99/100
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 206 Partial Content
|
||||
Date: Mon, 13 Nov 2007 13:41:09 GMT
|
||||
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
||||
Accept-Ranges: bytes
|
||||
Content-Length: 60
|
||||
Content-Range: bytes 40-99/100
|
||||
|
||||
012345678
|
||||
012345678
|
||||
012345678
|
||||
|
|
@ -70,7 +70,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER -C -
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
Range: bytes=40-
|
||||
|
|
|
|||
|
|
@ -49,10 +49,10 @@ SIZE %TESTNUMBER
|
|||
REST 0
|
||||
QUIT
|
||||
</protocol>
|
||||
<stdout>
|
||||
Last-Modified: Sat, 26 Jul 2008 10:26:59 GMT
|
||||
Content-Length: 9999999999
|
||||
Accept-ranges: bytes
|
||||
<stdout crlf="headers">
|
||||
Last-Modified: Sat, 26 Jul 2008 10:26:59 GMT
|
||||
Content-Length: 9999999999
|
||||
Accept-ranges: bytes
|
||||
</stdout>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
|
|
@ -10,14 +10,14 @@ HTTP GET
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 200 OK
|
||||
Date: Mon, 28 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 6
|
||||
Connection: close
|
||||
Content-Type: text/plain
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Mon, 28 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 6
|
||||
Connection: close
|
||||
Content-Type: text/plain
|
||||
|
||||
-foo-
|
||||
</data>
|
||||
</reply>
|
||||
|
|
@ -39,7 +39,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER --interface %CLIENTIP
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -11,14 +11,14 @@ IPv6
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 200 OK
|
||||
Date: Mon, 28 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 6
|
||||
Connection: close
|
||||
Content-Type: text/plain
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Mon, 28 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 6
|
||||
Connection: close
|
||||
Content-Type: text/plain
|
||||
|
||||
-foo-
|
||||
</data>
|
||||
</reply>
|
||||
|
|
@ -43,7 +43,7 @@ HTTP-IPv6 GET with numeric localhost --interface
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOST6IP:%HTTP6PORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -9,40 +9,40 @@ followlocation
|
|||
</info>
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 301 Redirect swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 301 Redirect swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
</data>
|
||||
<data2>
|
||||
HTTP/1.1 100 Continue
|
||||
|
||||
HTTP/1.1 200 Followed here fine swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 51
|
||||
|
||||
<data2 crlf="headers">
|
||||
HTTP/1.1 100 Continue
|
||||
|
||||
HTTP/1.1 200 Followed here fine swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 51
|
||||
|
||||
If this is received, the location following worked
|
||||
</data2>
|
||||
<datacheck>
|
||||
HTTP/1.1 301 Redirect swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
HTTP/1.1 100 Continue
|
||||
|
||||
HTTP/1.1 200 Followed here fine swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 51
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 301 Redirect swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
HTTP/1.1 100 Continue
|
||||
|
||||
HTTP/1.1 200 Followed here fine swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 51
|
||||
|
||||
If this is received, the location following worked
|
||||
</datacheck>
|
||||
</reply>
|
||||
|
|
|
|||
|
|
@ -9,36 +9,36 @@ followlocation
|
|||
</info>
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.0 301 Redirect swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.0 301 Redirect swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
</data>
|
||||
<data2>
|
||||
HTTP/1.0 200 Followed here fine swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 51
|
||||
|
||||
<data2 crlf="headers">
|
||||
HTTP/1.0 200 Followed here fine swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 51
|
||||
|
||||
If this is received, the location following worked
|
||||
</data2>
|
||||
<datacheck>
|
||||
HTTP/1.0 301 Redirect swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
HTTP/1.0 200 Followed here fine swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 51
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.0 301 Redirect swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
HTTP/1.0 200 Followed here fine swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 51
|
||||
|
||||
If this is received, the location following worked
|
||||
</datacheck>
|
||||
</reply>
|
||||
|
|
|
|||
|
|
@ -11,39 +11,39 @@ followlocation
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 307 Redirect swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 307 Redirect swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
</data>
|
||||
<data2>
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 11
|
||||
Connection: close
|
||||
|
||||
<data2 crlf="headers">
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 11
|
||||
Connection: close
|
||||
|
||||
blablabla
|
||||
|
||||
</data2>
|
||||
<datacheck>
|
||||
HTTP/1.1 307 Redirect swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 11
|
||||
Connection: close
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 307 Redirect swsclose
|
||||
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 11
|
||||
Connection: close
|
||||
|
||||
blablabla
|
||||
|
||||
</datacheck>
|
||||
|
|
|
|||
|
|
@ -10,30 +10,30 @@ followlocation
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 301 OK swsclose
|
||||
Location: moo/testcase/%TESTNUMBER0002
|
||||
Date: Thu, 31 Jul 2008 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 301 OK swsclose
|
||||
Location: moo/testcase/%TESTNUMBER0002
|
||||
Date: Thu, 31 Jul 2008 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
</data>
|
||||
<data2>
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Thu, 31 Jul 2008 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
<data2 crlf="headers">
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Thu, 31 Jul 2008 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
body
|
||||
</data2>
|
||||
<datacheck>
|
||||
HTTP/1.1 301 OK swsclose
|
||||
Location: moo/testcase/%TESTNUMBER0002
|
||||
Date: Thu, 31 Jul 2008 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Thu, 31 Jul 2008 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 301 OK swsclose
|
||||
Location: moo/testcase/%TESTNUMBER0002
|
||||
Date: Thu, 31 Jul 2008 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Thu, 31 Jul 2008 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
body
|
||||
</datacheck>
|
||||
</reply>
|
||||
|
|
|
|||
|
|
@ -13,15 +13,15 @@ STOR
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 307 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/html
|
||||
Location: ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 307 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/html
|
||||
Location: ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
|
|
|
|||
|
|
@ -11,30 +11,30 @@ IPv6
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 302 OK swsclose
|
||||
Location: http://[::1%259999]:%HTTP6PORT/moo/%TESTNUMBER0002
|
||||
Date: Thu, 31 Jul 2008 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 302 OK swsclose
|
||||
Location: http://[::1%259999]:%HTTP6PORT/moo/%TESTNUMBER0002
|
||||
Date: Thu, 31 Jul 2008 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
</data>
|
||||
<data2>
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Thu, 31 Jul 2008 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
<data2 crlf="headers">
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Thu, 31 Jul 2008 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
body
|
||||
</data2>
|
||||
<datacheck>
|
||||
HTTP/1.1 302 OK swsclose
|
||||
Location: http://[::1%259999]:%HTTP6PORT/moo/%TESTNUMBER0002
|
||||
Date: Thu, 31 Jul 2008 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Thu, 31 Jul 2008 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 302 OK swsclose
|
||||
Location: http://[::1%259999]:%HTTP6PORT/moo/%TESTNUMBER0002
|
||||
Date: Thu, 31 Jul 2008 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Thu, 31 Jul 2008 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
body
|
||||
</datacheck>
|
||||
</reply>
|
||||
|
|
@ -66,7 +66,7 @@ http://%HOSTIP:%HTTPPORT/we/are/all/twits/%TESTNUMBER -L
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /we/are/all/twits/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -9,15 +9,15 @@ Content-Range
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 206 Partial Content
|
||||
Date: Thu, 31 Jul 2008 13:41:09 GMT
|
||||
Accept-Ranges: bytes
|
||||
Content-Length: 101
|
||||
Content-Range: bytes 100-200/201
|
||||
Connection: close
|
||||
Content-Type: text/html
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 206 Partial Content
|
||||
Date: Thu, 31 Jul 2008 13:41:09 GMT
|
||||
Accept-Ranges: bytes
|
||||
Content-Length: 101
|
||||
Content-Range: bytes 100-200/201
|
||||
Connection: close
|
||||
Content-Type: text/html
|
||||
|
||||
..partial data returned from the
|
||||
server as a result of setting an explicit byte range
|
||||
in the request
|
||||
|
|
@ -39,7 +39,7 @@ http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -r -101
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /want/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
Range: bytes=-101
|
||||
|
|
|
|||
|
|
@ -12,12 +12,12 @@ FAILURE
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<connect>
|
||||
HTTP/1.1 501 Method not implemented swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
|
||||
<connect crlf="headers">
|
||||
HTTP/1.1 501 Method not implemented swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
Content-Length: 0
|
||||
|
||||
</connect>
|
||||
</reply>
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ ftp://test-number:%TESTNUMBER/wanted/page -p -x %HOSTIP:%HTTPPORT
|
|||
<errorcode>
|
||||
56
|
||||
</errorcode>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
CONNECT test-number:%TESTNUMBER HTTP/1.1
|
||||
Host: test-number:%TESTNUMBER
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -14,12 +14,12 @@ HTTP proxy Digest auth
|
|||
<reply>
|
||||
|
||||
# this is returned first since we get no proxy-auth
|
||||
<connect>
|
||||
HTTP/1.1 407 Authorization Required to proxy me my dear
|
||||
Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
|
||||
Content-Length: 35701
|
||||
X-tra-long-header: %repeat[16080 x a]%
|
||||
|
||||
<connect crlf="headers">
|
||||
HTTP/1.1 407 Authorization Required to proxy me my dear
|
||||
Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
|
||||
Content-Length: 35701
|
||||
X-tra-long-header: %repeat[16080 x a]%
|
||||
|
||||
%repeat[700 x And you should ignore this data. aaaaaaaaaaaaaaaa %0a]%
|
||||
</connect>
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ http://test.remote.haxx.se.%TESTNUMBER:8990/path/%TESTNUMBER0002 --proxy http://
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
CONNECT test.remote.haxx.se.%TESTNUMBER:8990 HTTP/1.1
|
||||
Host: test.remote.haxx.se.%TESTNUMBER:8990
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ http://test.remote.haxx.se.%TESTNUMBER:8990/path/%TESTNUMBER0002 --proxy http://
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
CONNECT test.remote.haxx.se.%TESTNUMBER:8990 HTTP/1.1
|
||||
Host: test.remote.haxx.se.%TESTNUMBER:8990
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -7,20 +7,20 @@ HTTP PUT
|
|||
</info>
|
||||
|
||||
<reply>
|
||||
<data nocheck="yes">
|
||||
HTTP/1.1 200 A OK
|
||||
Server: curl test
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 3
|
||||
|
||||
<data crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 200 A OK
|
||||
Server: curl test
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 3
|
||||
|
||||
ok
|
||||
</data>
|
||||
<data2 nocheck="yes">
|
||||
HTTP/1.1 200 A OK
|
||||
Server: curl test
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 9
|
||||
|
||||
<data2 crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 200 A OK
|
||||
Server: curl test
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 9
|
||||
|
||||
still ok
|
||||
</data2>
|
||||
</reply>
|
||||
|
|
@ -60,18 +60,18 @@ Content-Length: 5
|
|||
|
||||
test
|
||||
</protocol>
|
||||
<stdout>
|
||||
HTTP/1.1 200 A OK
|
||||
Server: curl test
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 3
|
||||
|
||||
<stdout crlf="headers">
|
||||
HTTP/1.1 200 A OK
|
||||
Server: curl test
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 3
|
||||
|
||||
ok
|
||||
HTTP/1.1 200 A OK
|
||||
Server: curl test
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 9
|
||||
|
||||
HTTP/1.1 200 A OK
|
||||
Server: curl test
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 9
|
||||
|
||||
still ok
|
||||
</stdout>
|
||||
</verify>
|
||||
|
|
|
|||
|
|
@ -8,20 +8,20 @@ HTTP GET
|
|||
</info>
|
||||
|
||||
<reply>
|
||||
<data nocheck="yes">
|
||||
HTTP/1.1 200 A OK
|
||||
Server: curl test
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 3
|
||||
|
||||
<data crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 200 A OK
|
||||
Server: curl test
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 3
|
||||
|
||||
ok
|
||||
</data>
|
||||
<data2 nocheck="yes">
|
||||
HTTP/1.1 200 A OK
|
||||
Server: curl test
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 9
|
||||
|
||||
<data2 crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 200 A OK
|
||||
Server: curl test
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 9
|
||||
|
||||
still ok
|
||||
</data2>
|
||||
</reply>
|
||||
|
|
@ -59,18 +59,18 @@ User-Agent: curl/%VERSION
|
|||
Accept: */*
|
||||
|
||||
</protocol>
|
||||
<stdout>
|
||||
HTTP/1.1 200 A OK
|
||||
Server: curl test
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 3
|
||||
|
||||
<stdout crlf="headers">
|
||||
HTTP/1.1 200 A OK
|
||||
Server: curl test
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 3
|
||||
|
||||
ok
|
||||
HTTP/1.1 200 A OK
|
||||
Server: curl test
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 9
|
||||
|
||||
HTTP/1.1 200 A OK
|
||||
Server: curl test
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 9
|
||||
|
||||
still ok
|
||||
</stdout>
|
||||
</verify>
|
||||
|
|
|
|||
|
|
@ -8,20 +8,20 @@ HTTP GET
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Server: thebest/1.0
|
||||
Content-Type: text/plain
|
||||
Content-Length: 6
|
||||
|
||||
<data crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Server: thebest/1.0
|
||||
Content-Type: text/plain
|
||||
Content-Length: 6
|
||||
|
||||
first
|
||||
</data>
|
||||
<data1 nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Server: thebest/1.0
|
||||
Content-Type: text/plain
|
||||
Content-Length: 7
|
||||
|
||||
<data1 crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Server: thebest/1.0
|
||||
Content-Type: text/plain
|
||||
Content-Length: 7
|
||||
|
||||
second
|
||||
</data1>
|
||||
</reply>
|
||||
|
|
@ -41,7 +41,7 @@ http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/want/%TESTNUM
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /want/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER --silent --location --referer "firston
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /want/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -10,11 +10,11 @@ chunked Transfer-Encoding
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.0 200 OK swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.0 200 OK swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
||||
blablabla
|
||||
|
||||
</data>
|
||||
|
|
|
|||
|
|
@ -8,13 +8,13 @@ HTTP POST
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 403 Go away and swsclose
|
||||
Server: test-server/fake
|
||||
Content-Type: text/html
|
||||
Content-Length: 55
|
||||
Connection: close
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 403 Go away and swsclose
|
||||
Server: test-server/fake
|
||||
Content-Type: text/html
|
||||
Content-Length: 55
|
||||
Connection: close
|
||||
|
||||
you are not supposed to be allowed to send things here
|
||||
</data>
|
||||
<servercmd>
|
||||
|
|
|
|||
|
|
@ -14,47 +14,47 @@ HTTP/1.0
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.0 401 Authorization Required swsclose
|
||||
Server: testcurl
|
||||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"
|
||||
Content-Type: text/plain
|
||||
Content-Length: 35
|
||||
Connection: close
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.0 401 Authorization Required swsclose
|
||||
Server: testcurl
|
||||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"
|
||||
Content-Type: text/plain
|
||||
Content-Length: 35
|
||||
Connection: close
|
||||
|
||||
Try again on this HTTP 1.0 server!
|
||||
</data>
|
||||
|
||||
# This is supposed to be returned when the server gets a
|
||||
# Authorization: Digest line passed-in from the client
|
||||
<data1000>
|
||||
HTTP/1.0 200 OK swsclose
|
||||
Server: testcurl
|
||||
Content-Type: text/plain
|
||||
Content-Length: 23
|
||||
Connection: close
|
||||
|
||||
<data1000 crlf="headers">
|
||||
HTTP/1.0 200 OK swsclose
|
||||
Server: testcurl
|
||||
Content-Type: text/plain
|
||||
Content-Length: 23
|
||||
Connection: close
|
||||
|
||||
This IS the real page!
|
||||
</data1000>
|
||||
|
||||
<datacheck>
|
||||
HTTP/1.0 401 Authorization Required swsclose
|
||||
Server: testcurl
|
||||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"
|
||||
Content-Type: text/plain
|
||||
Content-Length: 35
|
||||
Connection: close
|
||||
|
||||
HTTP/1.0 200 OK swsclose
|
||||
Server: testcurl
|
||||
Content-Type: text/plain
|
||||
Content-Length: 23
|
||||
Connection: close
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.0 401 Authorization Required swsclose
|
||||
Server: testcurl
|
||||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"
|
||||
Content-Type: text/plain
|
||||
Content-Length: 35
|
||||
Connection: close
|
||||
|
||||
HTTP/1.0 200 OK swsclose
|
||||
Server: testcurl
|
||||
Content-Type: text/plain
|
||||
Content-Length: 23
|
||||
Connection: close
|
||||
|
||||
This IS the real page!
|
||||
</datacheck>
|
||||
|
||||
|
|
|
|||
|
|
@ -15,16 +15,16 @@ chunked Transfer-Encoding
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.0 401 Authorization Required swsclose
|
||||
Server: testcurl
|
||||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"
|
||||
Content-Type: text/plain
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.0 401 Authorization Required swsclose
|
||||
Server: testcurl
|
||||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"
|
||||
Content-Type: text/plain
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
|
|
|
|||
|
|
@ -14,14 +14,14 @@ chunked Transfer-Encoding
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.0 301 Redirect swsclose
|
||||
Server: testcurl
|
||||
Content-Type: text/plain
|
||||
Location: /newlocation/%TESTNUMBER0002
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.0 301 Redirect swsclose
|
||||
Server: testcurl
|
||||
Content-Type: text/plain
|
||||
Location: /newlocation/%TESTNUMBER0002
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
|
|
|
|||
|
|
@ -10,19 +10,19 @@ DELAY
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data nocheck="yes">
|
||||
HTTP/1.0 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 9
|
||||
Connection: Keep-Alive
|
||||
|
||||
<data crlf="headers" nocheck="yes">
|
||||
HTTP/1.0 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 9
|
||||
Connection: Keep-Alive
|
||||
|
||||
surprise
|
||||
</data>
|
||||
<data1>
|
||||
HTTP/1.0 200 OK swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
<data1 crlf="headers">
|
||||
HTTP/1.0 200 OK swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
surprise2
|
||||
</data1>
|
||||
|
||||
|
|
@ -46,21 +46,21 @@ http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/wantmore/%TES
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<stdout>
|
||||
HTTP/1.0 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 9
|
||||
Connection: Keep-Alive
|
||||
|
||||
<stdout crlf="headers">
|
||||
HTTP/1.0 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 9
|
||||
Connection: Keep-Alive
|
||||
|
||||
surprise
|
||||
HTTP/1.0 200 OK swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
HTTP/1.0 200 OK swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
surprise2
|
||||
</stdout>
|
||||
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /want/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -13,33 +13,33 @@ HTTP Basic auth
|
|||
# The test server provides no way to respond differently to a subsequent
|
||||
# Basic authenticated request (we really want to respond with 200 for
|
||||
# the second), so just respond with 401 for both and let curl deal with it.
|
||||
<data>
|
||||
HTTP/1.1 401 Authorization Required
|
||||
Server: testcurl
|
||||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: X-bogus-auth realm="gimme all yer s3cr3ts"
|
||||
Content-Type: text/plain
|
||||
Content-Length: 0
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 401 Authorization Required
|
||||
Server: testcurl
|
||||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: X-bogus-auth realm="gimme all yer s3cr3ts"
|
||||
Content-Type: text/plain
|
||||
Content-Length: 0
|
||||
|
||||
</data>
|
||||
<datacheck>
|
||||
HTTP/1.1 401 Authorization Required
|
||||
Server: testcurl
|
||||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: X-bogus-auth realm="gimme all yer s3cr3ts"
|
||||
Content-Type: text/plain
|
||||
Content-Length: 0
|
||||
|
||||
HTTP/1.1 401 Authorization Required
|
||||
Server: testcurl
|
||||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: X-bogus-auth realm="gimme all yer s3cr3ts"
|
||||
Content-Type: text/plain
|
||||
Content-Length: 0
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 401 Authorization Required
|
||||
Server: testcurl
|
||||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: X-bogus-auth realm="gimme all yer s3cr3ts"
|
||||
Content-Type: text/plain
|
||||
Content-Length: 0
|
||||
|
||||
HTTP/1.1 401 Authorization Required
|
||||
Server: testcurl
|
||||
WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"
|
||||
WWW-Authenticate: X-bogus-auth realm="gimme all yer s3cr3ts"
|
||||
Content-Type: text/plain
|
||||
Content-Length: 0
|
||||
|
||||
</datacheck>
|
||||
</reply>
|
||||
|
||||
|
|
|
|||
|
|
@ -12,26 +12,26 @@ HTTP proxy
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.0 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Type: text/plain
|
||||
Content-Length: 9
|
||||
Funny-head: yesyes
|
||||
Proxy-Connection: Keep-Alive
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.0 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Type: text/plain
|
||||
Content-Length: 9
|
||||
Funny-head: yesyes
|
||||
Proxy-Connection: Keep-Alive
|
||||
|
||||
contents
|
||||
</data>
|
||||
<data2>
|
||||
HTTP/1.0 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Type: text/plain
|
||||
Content-Length: 9
|
||||
Funny-head: yesyes
|
||||
Proxy-Connection: Keep-Alive
|
||||
|
||||
<data2 crlf="headers">
|
||||
HTTP/1.0 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Type: text/plain
|
||||
Content-Length: 9
|
||||
Funny-head: yesyes
|
||||
Proxy-Connection: Keep-Alive
|
||||
|
||||
contents
|
||||
</data2>
|
||||
</reply>
|
||||
|
|
@ -57,7 +57,7 @@ FTP over HTTP proxy with downgrade to HTTP 1.0
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET ftp://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -13,21 +13,21 @@ proxytunnel
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<connect>
|
||||
HTTP/1.1 200 Mighty fine indeed
|
||||
Server: test tunnel 2000
|
||||
|
||||
<connect crlf="headers">
|
||||
HTTP/1.1 200 Mighty fine indeed
|
||||
Server: test tunnel 2000
|
||||
|
||||
</connect>
|
||||
|
||||
<data nocheck="yes">
|
||||
HTTP/1.0 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Type: text/html
|
||||
Funny-head: yesyes
|
||||
Content-Length: 9
|
||||
Connection: keep-alive
|
||||
|
||||
<data crlf="headers" nocheck="yes">
|
||||
HTTP/1.0 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Type: text/html
|
||||
Funny-head: yesyes
|
||||
Content-Length: 9
|
||||
Connection: keep-alive
|
||||
|
||||
contents
|
||||
</data>
|
||||
</reply>
|
||||
|
|
@ -53,14 +53,14 @@ proxy
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<proxy>
|
||||
CONNECT %HOSTIP:%HTTPPORT HTTP/1.0
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
Proxy-Connection: Keep-Alive
|
||||
|
||||
<proxy crlf="headers">
|
||||
CONNECT %HOSTIP:%HTTPPORT HTTP/1.0
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
Proxy-Connection: Keep-Alive
|
||||
|
||||
</proxy>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /we/want/that/page/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
@ -72,27 +72,27 @@ User-Agent: curl/%VERSION
|
|||
Accept: */*
|
||||
|
||||
</protocol>
|
||||
<stdout>
|
||||
HTTP/1.1 200 Mighty fine indeed
|
||||
Server: test tunnel 2000
|
||||
|
||||
HTTP/1.0 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Type: text/html
|
||||
Funny-head: yesyes
|
||||
Content-Length: 9
|
||||
Connection: keep-alive
|
||||
|
||||
<stdout crlf="headers">
|
||||
HTTP/1.1 200 Mighty fine indeed
|
||||
Server: test tunnel 2000
|
||||
|
||||
HTTP/1.0 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Type: text/html
|
||||
Funny-head: yesyes
|
||||
Content-Length: 9
|
||||
Connection: keep-alive
|
||||
|
||||
contents
|
||||
HTTP/1.0 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Type: text/html
|
||||
Funny-head: yesyes
|
||||
Content-Length: 9
|
||||
Connection: keep-alive
|
||||
|
||||
HTTP/1.0 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Type: text/html
|
||||
Funny-head: yesyes
|
||||
Content-Length: 9
|
||||
Connection: keep-alive
|
||||
|
||||
contents
|
||||
</stdout>
|
||||
</verify>
|
||||
|
|
|
|||
|
|
@ -9,13 +9,13 @@ HTTP Digest auth
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 401 Authorization Required swsclose
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
WWW-Authenticate: Digest realm="testrealm", nonce="1053604145"
|
||||
Content-Type: text/plain; charset=iso-8859-1
|
||||
Content-Length: 26
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 401 Authorization Required swsclose
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
WWW-Authenticate: Digest realm="testrealm", nonce="1053604145"
|
||||
Content-Type: text/plain; charset=iso-8859-1
|
||||
Content-Length: 26
|
||||
|
||||
This is not the real page
|
||||
</data>
|
||||
|
||||
|
|
@ -25,13 +25,13 @@ This is not the real page
|
|||
<data1000>
|
||||
</data1000>
|
||||
|
||||
<datacheck>
|
||||
HTTP/1.1 401 Authorization Required swsclose
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
WWW-Authenticate: Digest realm="testrealm", nonce="1053604145"
|
||||
Content-Type: text/plain; charset=iso-8859-1
|
||||
Content-Length: 26
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 401 Authorization Required swsclose
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
WWW-Authenticate: Digest realm="testrealm", nonce="1053604145"
|
||||
Content-Type: text/plain; charset=iso-8859-1
|
||||
Content-Length: 26
|
||||
|
||||
</datacheck>
|
||||
|
||||
</reply>
|
||||
|
|
@ -59,7 +59,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --digest
|
|||
<errorcode>
|
||||
52
|
||||
</errorcode>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -11,12 +11,12 @@ followlocation
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data nocheck="yes">
|
||||
HTTP/1.1 301 This is a weirdo text message swsclose
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 62
|
||||
Connection: close
|
||||
|
||||
<data crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 301 This is a weirdo text message swsclose
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 62
|
||||
Connection: close
|
||||
|
||||
This server reply is for testing a simple Location: following
|
||||
</data>
|
||||
</reply>
|
||||
|
|
@ -36,7 +36,7 @@ http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/wan
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /we/want/our/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
@ -48,19 +48,19 @@ User-Agent: curl/%VERSION
|
|||
Accept: */*
|
||||
|
||||
</protocol>
|
||||
<stdout>
|
||||
HTTP/1.1 301 This is a weirdo text message swsclose
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 62
|
||||
Connection: close
|
||||
|
||||
<stdout crlf="headers">
|
||||
HTTP/1.1 301 This is a weirdo text message swsclose
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 62
|
||||
Connection: close
|
||||
|
||||
This server reply is for testing a simple Location: following
|
||||
http://%HOSTIP:%HTTPPORT/we/want/our/data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
HTTP/1.1 301 This is a weirdo text message swsclose
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 62
|
||||
Connection: close
|
||||
|
||||
HTTP/1.1 301 This is a weirdo text message swsclose
|
||||
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
Content-Length: 62
|
||||
Connection: close
|
||||
|
||||
This server reply is for testing a simple Location: following
|
||||
http://%HOSTIP:%HTTPPORT/we/want/our/data/%TESTNUMBER0002.txt?coolsite=yes
|
||||
</stdout>
|
||||
|
|
|
|||
|
|
@ -11,20 +11,20 @@ followlocation
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data nocheck="yes">
|
||||
HTTP/1.1 301 This is a weirdo text message swsclose
|
||||
Location: data/%TESTNUMBER0099.txt?coolsite=yes
|
||||
Content-Length: 62
|
||||
Connection: close
|
||||
|
||||
<data crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 301 This is a weirdo text message swsclose
|
||||
Location: data/%TESTNUMBER0099.txt?coolsite=yes
|
||||
Content-Length: 62
|
||||
Connection: close
|
||||
|
||||
This server reply is for testing a simple Location: following
|
||||
</data>
|
||||
<data2 nocheck="yes">
|
||||
HTTP/1.1 200 Followed here fine swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 41
|
||||
|
||||
<data2 crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 200 Followed here fine swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 41
|
||||
|
||||
This second URL does not have a location
|
||||
</data2>
|
||||
</reply>
|
||||
|
|
@ -44,7 +44,7 @@ http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/wan
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /we/want/our/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
@ -56,19 +56,19 @@ User-Agent: curl/%VERSION
|
|||
Accept: */*
|
||||
|
||||
</protocol>
|
||||
<stdout>
|
||||
HTTP/1.1 301 This is a weirdo text message swsclose
|
||||
Location: data/%TESTNUMBER0099.txt?coolsite=yes
|
||||
Content-Length: 62
|
||||
Connection: close
|
||||
|
||||
<stdout crlf="headers">
|
||||
HTTP/1.1 301 This is a weirdo text message swsclose
|
||||
Location: data/%TESTNUMBER0099.txt?coolsite=yes
|
||||
Content-Length: 62
|
||||
Connection: close
|
||||
|
||||
This server reply is for testing a simple Location: following
|
||||
http://%HOSTIP:%HTTPPORT/we/want/our/data/%TESTNUMBER0099.txt?coolsite=yes
|
||||
HTTP/1.1 200 Followed here fine swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 41
|
||||
|
||||
HTTP/1.1 200 Followed here fine swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 41
|
||||
|
||||
This second URL does not have a location
|
||||
|
||||
</stdout>
|
||||
|
|
|
|||
|
|
@ -10,14 +10,14 @@ HTTP GET
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 200 OK
|
||||
Date: Mon, 28 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 6
|
||||
Connection: close
|
||||
Content-Type: text/plain
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Mon, 28 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 6
|
||||
Connection: close
|
||||
Content-Type: text/plain
|
||||
|
||||
-foo-
|
||||
</data>
|
||||
</reply>
|
||||
|
|
@ -42,7 +42,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER -4 --interface 127.0.0.1
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -11,14 +11,14 @@ IPv6
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 200 OK
|
||||
Date: Mon, 28 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 6
|
||||
Connection: close
|
||||
Content-Type: text/plain
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Mon, 28 Jul 2008 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 6
|
||||
Connection: close
|
||||
Content-Type: text/plain
|
||||
|
||||
-foo-
|
||||
</data>
|
||||
</reply>
|
||||
|
|
@ -46,7 +46,7 @@ HTTP-IPv6 GET with ip6-localhost --interface
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOST6IP:%HTTP6PORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -13,57 +13,57 @@ followlocation
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data1000 nocheck="yes">
|
||||
HTTP/1.1 401 Authorization Required
|
||||
WWW-Authenticate: Basic
|
||||
Content-Type: text/plain
|
||||
Content-Length: 0
|
||||
|
||||
<data1000 crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 401 Authorization Required
|
||||
WWW-Authenticate: Basic
|
||||
Content-Type: text/plain
|
||||
Content-Length: 0
|
||||
|
||||
</data1000>
|
||||
<data1001 nocheck="yes">
|
||||
HTTP/1.1 302 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/plain
|
||||
Funny-head: yesyes
|
||||
Location: http://goto.second.host.now/%TESTNUMBER1002
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
<data1001 crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 302 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/plain
|
||||
Funny-head: yesyes
|
||||
Location: http://goto.second.host.now/%TESTNUMBER1002
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
</data1001>
|
||||
<data1002 nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/plain
|
||||
Funny-head: yesyes
|
||||
Content-Length: 9
|
||||
|
||||
<data1002 crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/plain
|
||||
Funny-head: yesyes
|
||||
Content-Length: 9
|
||||
|
||||
contents
|
||||
</data1002>
|
||||
|
||||
<datacheck>
|
||||
HTTP/1.1 401 Authorization Required
|
||||
WWW-Authenticate: Basic
|
||||
Content-Type: text/plain
|
||||
Content-Length: 0
|
||||
|
||||
HTTP/1.1 302 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/plain
|
||||
Funny-head: yesyes
|
||||
Location: http://goto.second.host.now/%TESTNUMBER1002
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/plain
|
||||
Funny-head: yesyes
|
||||
Content-Length: 9
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 401 Authorization Required
|
||||
WWW-Authenticate: Basic
|
||||
Content-Type: text/plain
|
||||
Content-Length: 0
|
||||
|
||||
HTTP/1.1 302 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/plain
|
||||
Funny-head: yesyes
|
||||
Location: http://goto.second.host.now/%TESTNUMBER1002
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/plain
|
||||
Funny-head: yesyes
|
||||
Content-Length: 9
|
||||
|
||||
contents
|
||||
</datacheck>
|
||||
</reply>
|
||||
|
|
@ -88,7 +88,7 @@ proxy
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET http://first.host.it.is/we/want/that/page/%TESTNUMBER1000 HTTP/1.1
|
||||
Host: first.host.it.is
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -14,57 +14,57 @@ followlocation
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data1000 nocheck="yes">
|
||||
HTTP/1.1 401 Authorization Required
|
||||
WWW-Authenticate: Basic
|
||||
Content-Type: text/plain
|
||||
Content-Length: 0
|
||||
|
||||
<data1000 crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 401 Authorization Required
|
||||
WWW-Authenticate: Basic
|
||||
Content-Type: text/plain
|
||||
Content-Length: 0
|
||||
|
||||
</data1000>
|
||||
<data1001 nocheck="yes">
|
||||
HTTP/1.1 302 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/plain
|
||||
Funny-head: yesyes
|
||||
Location: http://goto.second.host.now/%TESTNUMBER1002
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
<data1001 crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 302 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/plain
|
||||
Funny-head: yesyes
|
||||
Location: http://goto.second.host.now/%TESTNUMBER1002
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
</data1001>
|
||||
<data1003 nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/plain
|
||||
Funny-head: yesyes
|
||||
Content-Length: 9
|
||||
|
||||
<data1003 crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/plain
|
||||
Funny-head: yesyes
|
||||
Content-Length: 9
|
||||
|
||||
contents
|
||||
</data1003>
|
||||
|
||||
<datacheck>
|
||||
HTTP/1.1 401 Authorization Required
|
||||
WWW-Authenticate: Basic
|
||||
Content-Type: text/plain
|
||||
Content-Length: 0
|
||||
|
||||
HTTP/1.1 302 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/plain
|
||||
Funny-head: yesyes
|
||||
Location: http://goto.second.host.now/%TESTNUMBER1002
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/plain
|
||||
Funny-head: yesyes
|
||||
Content-Length: 9
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 401 Authorization Required
|
||||
WWW-Authenticate: Basic
|
||||
Content-Type: text/plain
|
||||
Content-Length: 0
|
||||
|
||||
HTTP/1.1 302 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/plain
|
||||
Funny-head: yesyes
|
||||
Location: http://goto.second.host.now/%TESTNUMBER1002
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake swsclose
|
||||
Content-Type: text/plain
|
||||
Funny-head: yesyes
|
||||
Content-Length: 9
|
||||
|
||||
contents
|
||||
</datacheck>
|
||||
</reply>
|
||||
|
|
@ -89,7 +89,7 @@ proxy
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET http://first.host.it.is/we/want/that/page/%TESTNUMBER1000 HTTP/1.1
|
||||
Host: first.host.it.is
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -11,23 +11,23 @@ followlocation
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data nocheck="yes">
|
||||
HTTP/1.1 302 OK swsbounce swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 8
|
||||
Connection: close
|
||||
Content-Type: text/plain
|
||||
Location: ./%TESTNUMBER0001
|
||||
|
||||
<data crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 302 OK swsbounce swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 8
|
||||
Connection: close
|
||||
Content-Type: text/plain
|
||||
Location: ./%TESTNUMBER0001
|
||||
|
||||
monster
|
||||
</data>
|
||||
<data1 nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 15
|
||||
Connection: close
|
||||
Content-Type: text/plain; charset=us-ascii
|
||||
|
||||
<data1 crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 15
|
||||
Connection: close
|
||||
Content-Type: text/plain; charset=us-ascii
|
||||
|
||||
bigger monster
|
||||
</data1>
|
||||
|
||||
|
|
@ -50,7 +50,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w "%{num_connects}\n%{num_redirects}\n%{si
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
@ -63,20 +63,20 @@ Accept: */*
|
|||
|
||||
</protocol>
|
||||
|
||||
<stdout>
|
||||
HTTP/1.1 302 OK swsbounce swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 8
|
||||
Connection: close
|
||||
Content-Type: text/plain
|
||||
Location: ./%TESTNUMBER0001
|
||||
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 15
|
||||
Connection: close
|
||||
Content-Type: text/plain; charset=us-ascii
|
||||
|
||||
<stdout crlf="headers">
|
||||
HTTP/1.1 302 OK swsbounce swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 8
|
||||
Connection: close
|
||||
Content-Type: text/plain
|
||||
Location: ./%TESTNUMBER0001
|
||||
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 15
|
||||
Connection: close
|
||||
Content-Type: text/plain; charset=us-ascii
|
||||
|
||||
bigger monster
|
||||
2
|
||||
1
|
||||
|
|
|
|||
|
|
@ -12,30 +12,30 @@ chunked Transfer-Encoding
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data nocheck="yes">
|
||||
HTTP/1.1 302 OK swsbounce swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 8
|
||||
Connection: close
|
||||
Content-Type: text/plain
|
||||
Location: ./%TESTNUMBER0001
|
||||
|
||||
<data crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 302 OK swsbounce swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 8
|
||||
Connection: close
|
||||
Content-Type: text/plain
|
||||
Location: ./%TESTNUMBER0001
|
||||
|
||||
monster
|
||||
</data>
|
||||
<data1 nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Transfer-Encoding: chunked
|
||||
Connection: close
|
||||
Content-Type: text/plain; charset=us-ascii
|
||||
|
||||
0007
|
||||
bigger
|
||||
0008
|
||||
<data1 crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Transfer-Encoding: chunked
|
||||
Connection: close
|
||||
Content-Type: text/plain; charset=us-ascii
|
||||
|
||||
0007
|
||||
bigger%spc%
|
||||
0008
|
||||
monster
|
||||
|
||||
0
|
||||
|
||||
|
||||
0
|
||||
|
||||
</data1>
|
||||
|
||||
</reply>
|
||||
|
|
@ -57,7 +57,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w "%{num_connects}\n%{num_redirects}\n%{si
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
@ -70,20 +70,20 @@ Accept: */*
|
|||
|
||||
</protocol>
|
||||
|
||||
<stdout>
|
||||
HTTP/1.1 302 OK swsbounce swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 8
|
||||
Connection: close
|
||||
Content-Type: text/plain
|
||||
Location: ./%TESTNUMBER0001
|
||||
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Transfer-Encoding: chunked
|
||||
Connection: close
|
||||
Content-Type: text/plain; charset=us-ascii
|
||||
|
||||
<stdout crlf="headers">
|
||||
HTTP/1.1 302 OK swsbounce swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 8
|
||||
Connection: close
|
||||
Content-Type: text/plain
|
||||
Location: ./%TESTNUMBER0001
|
||||
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Transfer-Encoding: chunked
|
||||
Connection: close
|
||||
Content-Type: text/plain; charset=us-ascii
|
||||
|
||||
bigger monster
|
||||
2
|
||||
1
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ FTP with type=i over HTTP proxy
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET ftp://%HOSTIP:%HTTPPORT/we/want/that/page/%TESTNUMBER;type=i HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -16,11 +16,11 @@ data
|
|||
returned
|
||||
to client
|
||||
</data>
|
||||
<datacheck>
|
||||
a chunk of
|
||||
data
|
||||
returned
|
||||
to client
|
||||
<datacheck crlf="yes">
|
||||
a chunk of
|
||||
data
|
||||
returned
|
||||
to client
|
||||
</datacheck>
|
||||
</reply>
|
||||
|
||||
|
|
|
|||
|
|
@ -8,39 +8,39 @@ HTTP Digest auth
|
|||
</info>
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 401 Authorization Required swsclose
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
WWW-Authenticate: Digest realm="test \"this\" realm!!", nonce="1053604145"
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 26
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 401 Authorization Required swsclose
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
WWW-Authenticate: Digest realm="test \"this\" realm!!", nonce="1053604145"
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 26
|
||||
|
||||
This is not the real page
|
||||
</data>
|
||||
|
||||
# This is supposed to be returned when the server gets a
|
||||
# Authorization: Digest line passed-in from the client
|
||||
<data1000>
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 23
|
||||
|
||||
<data1000 crlf="headers">
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 23
|
||||
|
||||
This IS the real page!
|
||||
</data1000>
|
||||
|
||||
<datacheck>
|
||||
HTTP/1.1 401 Authorization Required swsclose
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
WWW-Authenticate: Digest realm="test \"this\" realm!!", nonce="1053604145"
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 26
|
||||
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 23
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 401 Authorization Required swsclose
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
WWW-Authenticate: Digest realm="test \"this\" realm!!", nonce="1053604145"
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 26
|
||||
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 23
|
||||
|
||||
This IS the real page!
|
||||
</datacheck>
|
||||
|
||||
|
|
@ -66,7 +66,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --digest
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -11,29 +11,29 @@ HTTP proxy NTLM auth
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 200 We are fine and cool
|
||||
Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
|
||||
Content-Length: 27
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 We are fine and cool
|
||||
Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
|
||||
Content-Length: 27
|
||||
|
||||
This is all fine and dandy
|
||||
</data>
|
||||
|
||||
# This is the CONNECT response
|
||||
<connect1001>
|
||||
HTTP/1.1 200 We are fine and cool
|
||||
Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
|
||||
|
||||
<connect1001 crlf="headers">
|
||||
HTTP/1.1 200 We are fine and cool
|
||||
Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
|
||||
|
||||
</connect1001>
|
||||
|
||||
<datacheck>
|
||||
HTTP/1.1 200 We are fine and cool
|
||||
Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
|
||||
|
||||
HTTP/1.1 200 We are fine and cool
|
||||
Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
|
||||
Content-Length: 27
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 200 We are fine and cool
|
||||
Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
|
||||
|
||||
HTTP/1.1 200 We are fine and cool
|
||||
Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
|
||||
Content-Length: 27
|
||||
|
||||
This is all fine and dandy
|
||||
</datacheck>
|
||||
</reply>
|
||||
|
|
|
|||
|
|
@ -10,11 +10,11 @@ CURLOPT_PROXY
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 6
|
||||
|
||||
<data crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 6
|
||||
|
||||
hello
|
||||
</data>
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ ftp://ftp-site/moo/%TESTNUMBER ftp://ftp-site/moo/%TESTNUMBER --proxy http://%HO
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET ftp://ftp-site/moo/%TESTNUMBER HTTP/1.1
|
||||
Host: ftp-site:21
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
@ -57,16 +57,16 @@ Accept: */*
|
|||
Proxy-Connection: Keep-Alive
|
||||
|
||||
</protocol>
|
||||
<stdout>
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 6
|
||||
|
||||
<stdout crlf="headers">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 6
|
||||
|
||||
hello
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 6
|
||||
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 6
|
||||
|
||||
hello
|
||||
</stdout>
|
||||
</verify>
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -L
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /want/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -9,51 +9,51 @@ HTTP NTLM auth
|
|||
# Server-side
|
||||
<reply>
|
||||
|
||||
<data>
|
||||
HTTP/1.1 200 Thanks for this! swsclose
|
||||
Content-Length: 25
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 Thanks for this! swsclose
|
||||
Content-Length: 25
|
||||
|
||||
This is the final page !
|
||||
</data>
|
||||
|
||||
<data1001>
|
||||
HTTP/1.1 401 Now gimme that second request of crap
|
||||
Server: Microsoft-IIS/5.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 34
|
||||
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
||||
|
||||
<data1001 crlf="headers">
|
||||
HTTP/1.1 401 Now gimme that second request of crap
|
||||
Server: Microsoft-IIS/5.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 34
|
||||
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
||||
|
||||
This is not the real page either!
|
||||
</data1001>
|
||||
|
||||
# This is supposed to be returned when the server gets the second
|
||||
# Authorization: NTLM line passed-in from the client
|
||||
<data1002>
|
||||
HTTP/1.1 302 Thanks for this, but we want to redir you!
|
||||
Server: Microsoft-IIS/5.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Location: /%TESTNUMBER
|
||||
Content-Length: 34
|
||||
|
||||
<data1002 crlf="headers">
|
||||
HTTP/1.1 302 Thanks for this, but we want to redir you!
|
||||
Server: Microsoft-IIS/5.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Location: /%TESTNUMBER
|
||||
Content-Length: 34
|
||||
|
||||
This is not the real page either!
|
||||
</data1002>
|
||||
|
||||
<datacheck>
|
||||
HTTP/1.1 401 Now gimme that second request of crap
|
||||
Server: Microsoft-IIS/5.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 34
|
||||
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
||||
|
||||
HTTP/1.1 302 Thanks for this, but we want to redir you!
|
||||
Server: Microsoft-IIS/5.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Location: /%TESTNUMBER
|
||||
Content-Length: 34
|
||||
|
||||
HTTP/1.1 200 Thanks for this! swsclose
|
||||
Content-Length: 25
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 401 Now gimme that second request of crap
|
||||
Server: Microsoft-IIS/5.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 34
|
||||
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
|
||||
|
||||
HTTP/1.1 302 Thanks for this, but we want to redir you!
|
||||
Server: Microsoft-IIS/5.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Location: /%TESTNUMBER
|
||||
Content-Length: 34
|
||||
|
||||
HTTP/1.1 200 Thanks for this! swsclose
|
||||
Content-Length: 25
|
||||
|
||||
This is the final page !
|
||||
</datacheck>
|
||||
|
||||
|
|
|
|||
|
|
@ -11,13 +11,13 @@ NO_PROXY
|
|||
</info>
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 4
|
||||
Content-Type: text/html
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 4
|
||||
Content-Type: text/html
|
||||
|
||||
boo
|
||||
</data>
|
||||
</reply>
|
||||
|
|
@ -42,7 +42,7 @@ http://user:secret@%HOSTIP:%HTTPPORT/gimme/%TESTNUMBER
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /gimme/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
Authorization: Basic %b64[user:secret]b64%
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ proxy
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -10,19 +10,19 @@ cookiejar
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Type: text/html
|
||||
Funny-head: yesyes swsclose
|
||||
Set-Cookie: foobar=name;
|
||||
Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/";
|
||||
Set-Cookie: partmatch=present; domain=.0.0.1; path=/;
|
||||
Set-Cookie: foo%tab%bar=barfoo
|
||||
Set-Cookie: bar%tab%foo=
|
||||
Set-Cookie: bar=foo%tab%bar
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Type: text/html
|
||||
Funny-head: yesyes swsclose
|
||||
Set-Cookie: foobar=name;
|
||||
Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/";
|
||||
Set-Cookie: partmatch=present; domain=.0.0.1; path=/;
|
||||
Set-Cookie: foo%tab%bar=barfoo
|
||||
Set-Cookie: bar%tab%foo=
|
||||
Set-Cookie: bar=foo%tab%bar
|
||||
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
|
|
|
|||
|
|
@ -9,13 +9,13 @@ HTTP proxy
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data nocheck="yes">
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Accept-Ranges: bytes
|
||||
Content-Length: 6
|
||||
|
||||
<data crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Accept-Ranges: bytes
|
||||
Content-Length: 6
|
||||
|
||||
hello
|
||||
</data>
|
||||
</reply>
|
||||
|
|
@ -44,7 +44,7 @@ ftp://%HOSTIP:23456/%TESTNUMBER
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET ftp://%HOSTIP:23456/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:23456
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER#test
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER?q=foobar#fragment
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER?q=foobar HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER?q=foobar#fragment#fragment2
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER?q=foobar HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -8,17 +8,17 @@ HTTP 1xx response code
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 104 Experiment
|
||||
Server: Microsoft-IIS/5.0
|
||||
Date: Sun, 03 Apr 2005 14:57:45 GMT
|
||||
X-Powered-By: ASP.NET
|
||||
|
||||
HTTP/1.1 200 OK swsbounce
|
||||
Server: Microsoft-IIS/6.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 0
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 104 Experiment
|
||||
Server: Microsoft-IIS/5.0
|
||||
Date: Sun, 03 Apr 2005 14:57:45 GMT
|
||||
X-Powered-By: ASP.NET
|
||||
|
||||
HTTP/1.1 200 OK swsbounce
|
||||
Server: Microsoft-IIS/6.0
|
||||
Content-Type: text/html; charset=iso-8859-1
|
||||
Content-Length: 0
|
||||
|
||||
</data>
|
||||
|
||||
</reply>
|
||||
|
|
@ -39,7 +39,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -10,33 +10,33 @@ DELAY
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 200 funky chunky!
|
||||
Server: fakeit/0.9 fakeitbad/1.0
|
||||
Transfer-Encoding: chunked
|
||||
Connection: mooo
|
||||
|
||||
40
|
||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
30
|
||||
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
||||
21;heresatest=moooo
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 funky chunky!
|
||||
Server: fakeit/0.9 fakeitbad/1.0
|
||||
Transfer-Encoding: chunked
|
||||
Connection: mooo
|
||||
|
||||
40
|
||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
||||
30
|
||||
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
|
||||
21;heresatest=moooo
|
||||
cccccccccccccccccccccccccccccccc
|
||||
|
||||
0
|
||||
chunky-trailer: header data
|
||||
another-header: yes
|
||||
|
||||
|
||||
0
|
||||
chunky-trailer: header data
|
||||
another-header: yes
|
||||
|
||||
</data>
|
||||
<datacheck>
|
||||
HTTP/1.1 200 funky chunky!
|
||||
Server: fakeit/0.9 fakeitbad/1.0
|
||||
Transfer-Encoding: chunked
|
||||
Connection: mooo
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 200 funky chunky!
|
||||
Server: fakeit/0.9 fakeitbad/1.0
|
||||
Transfer-Encoding: chunked
|
||||
Connection: mooo
|
||||
|
||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccc
|
||||
chunky-trailer: header data
|
||||
another-header: yes
|
||||
chunky-trailer: header data
|
||||
another-header: yes
|
||||
</datacheck>
|
||||
<servercmd>
|
||||
writedelay: 10
|
||||
|
|
@ -60,21 +60,21 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER -D %LOGDIR/heads%TESTNUMBER
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
|
||||
</protocol>
|
||||
<file name="%LOGDIR/heads%TESTNUMBER">
|
||||
HTTP/1.1 200 funky chunky!
|
||||
Server: fakeit/0.9 fakeitbad/1.0
|
||||
Transfer-Encoding: chunked
|
||||
Connection: mooo
|
||||
|
||||
chunky-trailer: header data
|
||||
another-header: yes
|
||||
<file name="%LOGDIR/heads%TESTNUMBER" crlf="headers">
|
||||
HTTP/1.1 200 funky chunky!
|
||||
Server: fakeit/0.9 fakeitbad/1.0
|
||||
Transfer-Encoding: chunked
|
||||
Connection: mooo
|
||||
|
||||
chunky-trailer: header data
|
||||
another-header: yes
|
||||
</file>
|
||||
</verify>
|
||||
|
||||
|
|
|
|||
|
|
@ -10,24 +10,24 @@ DELAY
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data nocheck="yes">
|
||||
HTTP/1.1 416 Requested Range Not Satisfiable
|
||||
Date: Tue, 09 Sep 2010 14:49:00 GMT
|
||||
Accept-Ranges: bytes
|
||||
Content-Length: 115
|
||||
|
||||
<data crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 416 Requested Range Not Satisfiable
|
||||
Date: Tue, 09 Sep 2010 14:49:00 GMT
|
||||
Accept-Ranges: bytes
|
||||
Content-Length: 115
|
||||
|
||||
This is a long error message that is large enough that the test server is
|
||||
guaranteed to split it into two packets.
|
||||
</data>
|
||||
|
||||
<data1>
|
||||
HTTP/1.1 206 Partial Content
|
||||
Date: Tue, 09 Sep 2010 14:49:01 GMT
|
||||
Accept-Ranges: bytes
|
||||
Content-Range: bytes 10-18/155
|
||||
Content-Length: 13
|
||||
Content-Type: text/plain
|
||||
|
||||
<data1 crlf="headers">
|
||||
HTTP/1.1 206 Partial Content
|
||||
Date: Tue, 09 Sep 2010 14:49:01 GMT
|
||||
Accept-Ranges: bytes
|
||||
Content-Range: bytes 10-18/155
|
||||
Content-Length: 13
|
||||
Content-Type: text/plain
|
||||
|
||||
partial body
|
||||
</data1>
|
||||
|
||||
|
|
@ -51,25 +51,25 @@ HTTP with invalid range then another URL
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<stdout>
|
||||
HTTP/1.1 416 Requested Range Not Satisfiable
|
||||
Date: Tue, 09 Sep 2010 14:49:00 GMT
|
||||
Accept-Ranges: bytes
|
||||
Content-Length: 115
|
||||
|
||||
<stdout crlf="headers">
|
||||
HTTP/1.1 416 Requested Range Not Satisfiable
|
||||
Date: Tue, 09 Sep 2010 14:49:00 GMT
|
||||
Accept-Ranges: bytes
|
||||
Content-Length: 115
|
||||
|
||||
This is a long error message that is large enough that the test server is
|
||||
guaranteed to split it into two packets.
|
||||
HTTP/1.1 206 Partial Content
|
||||
Date: Tue, 09 Sep 2010 14:49:01 GMT
|
||||
Accept-Ranges: bytes
|
||||
Content-Range: bytes 10-18/155
|
||||
Content-Length: 13
|
||||
Content-Type: text/plain
|
||||
|
||||
HTTP/1.1 206 Partial Content
|
||||
Date: Tue, 09 Sep 2010 14:49:01 GMT
|
||||
Accept-Ranges: bytes
|
||||
Content-Range: bytes 10-18/155
|
||||
Content-Length: 13
|
||||
Content-Type: text/plain
|
||||
|
||||
partial body
|
||||
</stdout>
|
||||
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /want/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
Range: bytes=10-22
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ http://%HOSTIP:%HTTPPORT?email=name@example.com/%TESTNUMBER
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /?email=name@example.com/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -7,12 +7,12 @@ HTTP
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.0 200 OK
|
||||
Server: test-server/fake
|
||||
Content-Type: text/html
|
||||
Content-Length: 6
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.0 200 OK
|
||||
Server: test-server/fake
|
||||
Content-Type: text/html
|
||||
Content-Length: 6
|
||||
|
||||
blaha
|
||||
</data>
|
||||
</reply>
|
||||
|
|
@ -34,7 +34,7 @@ HTTP multiple provided Host: headers
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: host1
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -10,30 +10,30 @@ Transfer-Encoding
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data nonewline="yes">
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Mon, 29 Nov 2004 21:56:53 GMT
|
||||
Server: Apache/1.3.31 (Debian GNU/Linux) mod_gzip/1.3.26.1a PHP/4.3.9-1 mod_ssl/2.8.20 OpenSSL/0.9.7d mod_perl/1.29
|
||||
Vary: Accept-Encoding
|
||||
Content-Type: text/html; charset=ISO-8859-1
|
||||
Transfer-Encoding: gzip
|
||||
Content-Length: 44
|
||||
|
||||
<data crlf="headers" nonewline="yes">
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Mon, 29 Nov 2004 21:56:53 GMT
|
||||
Server: Apache/1.3.31 (Debian GNU/Linux) mod_gzip/1.3.26.1a PHP/4.3.9-1 mod_ssl/2.8.20 OpenSSL/0.9.7d mod_perl/1.29
|
||||
Vary: Accept-Encoding
|
||||
Content-Type: text/html; charset=ISO-8859-1
|
||||
Transfer-Encoding: gzip
|
||||
Content-Length: 44
|
||||
|
||||
%hex[%1f%8b%08%08%79%9e%ab%41%00%03%6c%61%6c%61%6c%61%00%cb%c9%cc%4b%55%30%e4%52%c8%01%d1%46%5c]hex%
|
||||
%hex[%10%86%31%17%00]hex%
|
||||
%hex[%02%71%60%18%00%00%00]hex%
|
||||
</data>
|
||||
|
||||
# This ignore Content-Length
|
||||
<datacheck>
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Mon, 29 Nov 2004 21:56:53 GMT
|
||||
Server: Apache/1.3.31 (Debian GNU/Linux) mod_gzip/1.3.26.1a PHP/4.3.9-1 mod_ssl/2.8.20 OpenSSL/0.9.7d mod_perl/1.29
|
||||
Vary: Accept-Encoding
|
||||
Content-Type: text/html; charset=ISO-8859-1
|
||||
Transfer-Encoding: gzip
|
||||
Content-Length: 44
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Date: Mon, 29 Nov 2004 21:56:53 GMT
|
||||
Server: Apache/1.3.31 (Debian GNU/Linux) mod_gzip/1.3.26.1a PHP/4.3.9-1 mod_ssl/2.8.20 OpenSSL/0.9.7d mod_perl/1.29
|
||||
Vary: Accept-Encoding
|
||||
Content-Type: text/html; charset=ISO-8859-1
|
||||
Transfer-Encoding: gzip
|
||||
Content-Length: 44
|
||||
|
||||
line 1
|
||||
line 2
|
||||
line 3
|
||||
|
|
@ -61,7 +61,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER --tr-encoding
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER --tr-encoding
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -11,30 +11,30 @@ chunked Transfer-Encoding
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 200 OK
|
||||
Date: Mon, 29 Nov 2024 21:56:53 GMT
|
||||
Server: Something-TE-friendly/0.1
|
||||
Vary: Accept-Encoding
|
||||
Content-Type: text/html; charset=ISO-8859-1
|
||||
Transfer-Encoding: gzip, chunked
|
||||
|
||||
2c
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Mon, 29 Nov 2024 21:56:53 GMT
|
||||
Server: Something-TE-friendly/0.1
|
||||
Vary: Accept-Encoding
|
||||
Content-Type: text/html; charset=ISO-8859-1
|
||||
Transfer-Encoding: gzip, chunked
|
||||
|
||||
2c
|
||||
%hex[%1f%8b%08%08%79%9e%ab%41%00%03%6c%61%6c%61%6c%61%00%cb%c9%cc%4b%55%30%e4%52%c8%01%d1%46%5c]hex%
|
||||
%hex[%10%86%31%17%00]hex%
|
||||
%hex[%02%71%60%18%00%00%00]hex%
|
||||
0
|
||||
|
||||
%hex[%02%71%60%18%00%00%00]hex%
|
||||
0
|
||||
|
||||
</data>
|
||||
|
||||
<datacheck>
|
||||
HTTP/1.1 200 OK
|
||||
Date: Mon, 29 Nov 2024 21:56:53 GMT
|
||||
Server: Something-TE-friendly/0.1
|
||||
Vary: Accept-Encoding
|
||||
Content-Type: text/html; charset=ISO-8859-1
|
||||
Transfer-Encoding: gzip, chunked
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Mon, 29 Nov 2024 21:56:53 GMT
|
||||
Server: Something-TE-friendly/0.1
|
||||
Vary: Accept-Encoding
|
||||
Content-Type: text/html; charset=ISO-8859-1
|
||||
Transfer-Encoding: gzip, chunked
|
||||
|
||||
line 1
|
||||
line 2
|
||||
line 3
|
||||
|
|
@ -62,7 +62,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER --tr-encoding
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -10,30 +10,30 @@ Transfer-Encoding
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 200 OK
|
||||
Date: Mon, 29 Nov 2004 21:56:53 GMT
|
||||
Server: Apache/1.3.31 (Debian GNU/Linux) mod_gzip/1.3.26.1a PHP/4.3.9-1 mod_ssl/2.8.20 OpenSSL/0.9.7d mod_perl/1.29
|
||||
Vary: Accept-Encoding
|
||||
Content-Type: text/html; charset=ISO-8859-1
|
||||
Transfer-Encoding: gzip, chunked
|
||||
|
||||
2c
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Mon, 29 Nov 2004 21:56:53 GMT
|
||||
Server: Apache/1.3.31 (Debian GNU/Linux) mod_gzip/1.3.26.1a PHP/4.3.9-1 mod_ssl/2.8.20 OpenSSL/0.9.7d mod_perl/1.29
|
||||
Vary: Accept-Encoding
|
||||
Content-Type: text/html; charset=ISO-8859-1
|
||||
Transfer-Encoding: gzip, chunked
|
||||
|
||||
2c
|
||||
%hex[%1f%8b%08%08%79%9e%ab%41%00%03%6c%61%6c%61%6c%61%00%cb%c9%cc%4b%55%30%e4%52%c8%01%d1%46%5c]hex%
|
||||
%hex[%10%86%31%17%00]hex%
|
||||
%hex[%02%71%60%18%00%00%00]hex%
|
||||
0
|
||||
|
||||
%hex[%02%71%60%18%00%00%00]hex%
|
||||
0
|
||||
|
||||
</data>
|
||||
|
||||
<datacheck>
|
||||
HTTP/1.1 200 OK
|
||||
Date: Mon, 29 Nov 2004 21:56:53 GMT
|
||||
Server: Apache/1.3.31 (Debian GNU/Linux) mod_gzip/1.3.26.1a PHP/4.3.9-1 mod_ssl/2.8.20 OpenSSL/0.9.7d mod_perl/1.29
|
||||
Vary: Accept-Encoding
|
||||
Content-Type: text/html; charset=ISO-8859-1
|
||||
Transfer-Encoding: gzip, chunked
|
||||
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Mon, 29 Nov 2004 21:56:53 GMT
|
||||
Server: Apache/1.3.31 (Debian GNU/Linux) mod_gzip/1.3.26.1a PHP/4.3.9-1 mod_ssl/2.8.20 OpenSSL/0.9.7d mod_perl/1.29
|
||||
Vary: Accept-Encoding
|
||||
Content-Type: text/html; charset=ISO-8859-1
|
||||
Transfer-Encoding: gzip, chunked
|
||||
|
||||
line 1
|
||||
line 2
|
||||
line 3
|
||||
|
|
@ -61,7 +61,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER --tr-encoding -H "Connection: close"
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER -z "dec 12 12:00:00 1999 GMT"
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER -z "dec 12 12:00:00 1999 GMT"
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 -z
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ Content-Type: text/html
|
|||
|
||||
-foo-
|
||||
</stdout>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
POST /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ Content-Type: text/html
|
|||
|
||||
-foo-
|
||||
</stdout>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
POST /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ Content-Type: text/html
|
|||
|
||||
FAILURE2
|
||||
</stdout>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
PUT /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -7,12 +7,12 @@ HTTP FORMPOST
|
|||
</info>
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 10
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 10
|
||||
|
||||
blablabla
|
||||
</data>
|
||||
</reply>
|
||||
|
|
|
|||
|
|
@ -9,14 +9,14 @@ followlocation
|
|||
#
|
||||
# Server-side
|
||||
<reply>
|
||||
<data crlf="yes">
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 302 OK swsclose
|
||||
Location: ../moo.html/?name=%hex[%d8%a2%d8%ba%d8%a7%d8%b2%2d%d8%b3%d9%85%2d%d8%b2%d8%af%d8%a7%db%8c%db%8c%2d%d8%a7%d8%b2%2d%d8%a8%d8%a7%d8%b2%d8%a7%d8%b1%2d%d9%be%d9%88%d9%84]hex%&testcase=/%TESTNUMBER0002
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Connection: close
|
||||
|
||||
</data>
|
||||
<data2 crlf="yes">
|
||||
<data2 crlf="headers">
|
||||
HTTP/1.1 200 OK swsclose
|
||||
Location: this should be ignored
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
|
|
@ -24,7 +24,7 @@ Connection: close
|
|||
|
||||
body
|
||||
</data2>
|
||||
<datacheck crlf="yes">
|
||||
<datacheck crlf="headers">
|
||||
HTTP/1.1 302 OK swsclose
|
||||
Location: ../moo.html/?name=%hex[%d8%a2%d8%ba%d8%a7%d8%b2%2d%d8%b3%d9%85%2d%d8%b2%d8%af%d8%a7%db%8c%db%8c%2d%d8%a7%d8%b2%2d%d8%a8%d8%a7%d8%b2%d8%a7%d8%b1%2d%d9%be%d9%88%d9%84]hex%&testcase=/%TESTNUMBER0002
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
|
|
@ -56,7 +56,7 @@ http://%HOSTIP:%HTTPPORT/we/are/all/twits/%TESTNUMBER -L
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /we/are/all/twits/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ proxy
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ proxy
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ MSYS2_ARG_CONV_EXCL=http:/
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /want/%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ HTTP HEAD, receive no headers only body
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
HEAD /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER -# --stderr %LOGDIR/stderrlog%TESTNUMBER
|
|||
|
||||
#
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ proxy
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET http://test.remote.example.com.%TESTNUMBER:150/path HTTP/1.1
|
||||
Host: test.remote.example.com.%TESTNUMBER:150
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ cookies
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -10,12 +10,12 @@ cookies
|
|||
# Server-side
|
||||
<reply>
|
||||
|
||||
<data>
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 0
|
||||
Set-Cookie: domain=value;path=/
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Content-Length: 0
|
||||
Set-Cookie: domain=value;path=/
|
||||
|
||||
</data>
|
||||
</reply>
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ cookies
|
|||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -11,37 +11,37 @@ Range
|
|||
|
||||
# Server-side
|
||||
<reply>
|
||||
<data nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Content-Type: text/html
|
||||
Content-Length: 5
|
||||
|
||||
<data crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Content-Type: text/html
|
||||
Content-Length: 5
|
||||
|
||||
body
|
||||
</data>
|
||||
|
||||
<data1 nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Content-Type: text/html
|
||||
Content-Length: 5
|
||||
Content-Range: bytes 3/7
|
||||
|
||||
<data1 crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Content-Type: text/html
|
||||
Content-Length: 5
|
||||
Content-Range: bytes 3/7
|
||||
|
||||
body
|
||||
</data1>
|
||||
|
||||
<data2 nocheck="yes">
|
||||
HTTP/1.1 416 Requested Range Not Satisfiable
|
||||
Content-Type: text/html
|
||||
Content-Length: 5
|
||||
|
||||
<data2 crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 416 Requested Range Not Satisfiable
|
||||
Content-Type: text/html
|
||||
Content-Length: 5
|
||||
|
||||
body
|
||||
</data2>
|
||||
|
||||
<data3 nocheck="yes">
|
||||
HTTP/1.1 416 Requested Range Not Satisfiable
|
||||
Content-Type: text/html
|
||||
Content-Length: 5
|
||||
Content-Range: bytes */2
|
||||
|
||||
<data3 crlf="headers" nocheck="yes">
|
||||
HTTP/1.1 416 Requested Range Not Satisfiable
|
||||
Content-Type: text/html
|
||||
Content-Length: 5
|
||||
Content-Range: bytes */2
|
||||
|
||||
body
|
||||
</data3>
|
||||
</reply>
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER -H @%LOGDIR/heads%TESTNUMBER.txt
|
|||
#
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol crlf="yes">
|
||||
<protocol crlf="headers">
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
|
|
|
|||
|
|
@ -7,12 +7,12 @@ HTTP FORMPOST
|
|||
</info>
|
||||
# Server-side
|
||||
<reply>
|
||||
<data>
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 10
|
||||
|
||||
<data crlf="headers">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 10
|
||||
|
||||
blablabla
|
||||
</data>
|
||||
</reply>
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue