1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

testsuite: changed HTTP and RTSP header line-endings to CRLF

According to RFC 2616 and RFC 2326 individual protocol elements, like
headers and except the actual content, are terminated by using CRLF.

Therefore the test data files for these protocols need to contain
mixed line-endings if the actual protocol elements use CRLF while
the file uses LF.
This commit is contained in:
Marc Hoersken 2014-02-01 00:52:08 +01:00
parent 01844658df
commit 69745aaa45
34 changed files with 524 additions and 524 deletions

View File

@ -10,13 +10,13 @@ multi
# Server-side # Server-side
<reply> <reply>
<data> <data>
HTTP/1.1 200 all good! HTTP/1.1 200 all good!
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Type: text/html Content-Type: text/html
Content-Length: 12 Content-Length: 12
Connection: close Connection: close
Hello World Hello World
</data> </data>
</reply> </reply>

View File

@ -10,17 +10,17 @@ CURLOPT_RESOLVE
<reply> <reply>
<data> <data>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498" ETag: "21025-dc7-39462498"
Accept-Ranges: bytes Accept-Ranges: bytes
Content-Length: 6 Content-Length: 6
Connection: close Connection: close
Content-Type: text/html Content-Type: text/html
Funny-head: yesyes Funny-head: yesyes
-foo- -foo-
</data> </data>
</reply> </reply>

View File

@ -10,17 +10,17 @@ CURLOPT_RESOLVE
<reply> <reply>
<data> <data>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498" ETag: "21025-dc7-39462498"
Accept-Ranges: bytes Accept-Ranges: bytes
Content-Length: 6 Content-Length: 6
Connection: close Connection: close
Content-Type: text/html Content-Type: text/html
Funny-head: yesyes Funny-head: yesyes
-foo- -foo-
</data> </data>
</reply> </reply>

View File

@ -10,17 +10,17 @@ CURLOPT_RESOLVE
<reply> <reply>
<data> <data>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498" ETag: "21025-dc7-39462498"
Accept-Ranges: bytes Accept-Ranges: bytes
Content-Length: 6 Content-Length: 6
Connection: close Connection: close
Content-Type: text/html Content-Type: text/html
Funny-head: yesyes Funny-head: yesyes
-foo- -foo-
</data> </data>
</reply> </reply>

View File

@ -10,17 +10,17 @@ CURLOPT_RESOLVE
<reply> <reply>
<data> <data>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498" ETag: "21025-dc7-39462498"
Accept-Ranges: bytes Accept-Ranges: bytes
Content-Length: 6 Content-Length: 6
Connection: close Connection: close
Content-Type: text/html Content-Type: text/html
Funny-head: yesyes Funny-head: yesyes
-foo- -foo-
</data> </data>
</reply> </reply>

View File

@ -10,35 +10,35 @@ verbose logs
# Server-side # Server-side
<reply> <reply>
<data1> <data1>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Length: 47 Content-Length: 47
file contents should appear once for each file file contents should appear once for each file
</data1> </data1>
<data2> <data2>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Length: 47 Content-Length: 47
file contents should appear once for each file file contents should appear once for each file
</data2> </data2>
<data3> <data3>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Length: 47 Content-Length: 47
file contents should appear once for each file file contents should appear once for each file
</data3> </data3>
<data4> <data4>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Length: 47 Content-Length: 47
file contents should appear once for each file file contents should appear once for each file
</data4> </data4>
</reply> </reply>

View File

@ -21,25 +21,25 @@ Server: the beast that eats naughty clients
</connect> </connect>
<data> <data>
HTTP/1.1 200 OK swsclose HTTP/1.1 200 OK swsclose
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498" ETag: "21025-dc7-39462498"
</data> </data>
<datacheck> <datacheck>
HTTP/1.1 200 Mighty fine indeed HTTP/1.1 200 Mighty fine indeed
Server: the beast that eats naughty clients Server: the beast that eats naughty clients
HTTP/1.1 200 OK swsclose HTTP/1.1 200 OK swsclose
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498" ETag: "21025-dc7-39462498"
header length is ........: 239 header length is ........: 245
header length should be..: 239 header length should be..: 245
</datacheck> </datacheck>
</reply> </reply>

View File

@ -9,35 +9,35 @@ verbose logs
# Server-side # Server-side
<reply> <reply>
<data1> <data1>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Length: 47 Content-Length: 47
file contents should appear once for each file file contents should appear once for each file
</data1> </data1>
<data2> <data2>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Length: 47 Content-Length: 47
file contents should appear once for each file file contents should appear once for each file
</data2> </data2>
<data3> <data3>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Length: 47 Content-Length: 47
file contents should appear once for each file file contents should appear once for each file
</data3> </data3>
<data4> <data4>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Length: 47 Content-Length: 47
file contents should appear once for each file file contents should appear once for each file
</data4> </data4>
</reply> </reply>

View File

@ -9,35 +9,35 @@ GLOBAL DNS CACHE
# Server-side # Server-side
<reply> <reply>
<data1> <data1>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Length: 47 Content-Length: 47
file contents should appear once for each file file contents should appear once for each file
</data1> </data1>
<data2> <data2>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Length: 47 Content-Length: 47
file contents should appear once for each file file contents should appear once for each file
</data2> </data2>
<data3> <data3>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Length: 47 Content-Length: 47
file contents should appear once for each file file contents should appear once for each file
</data3> </data3>
<data4> <data4>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Length: 47 Content-Length: 47
file contents should appear once for each file file contents should appear once for each file
</data4> </data4>
</reply> </reply>

View File

@ -10,10 +10,10 @@ Content-Length
# Server-side # Server-side
<reply> <reply>
<data nocheck="yes"> <data nocheck="yes">
HTTP/1.1 411 Length Required HTTP/1.1 411 Length Required
Date: Sun, 19 Jan 2014 18:50:58 GMT Date: Sun, 19 Jan 2014 18:50:58 GMT
Server: test-server/fake swsclose Server: test-server/fake swsclose
Connection: close Connection: close
</data> </data>
</reply> </reply>

View File

@ -12,75 +12,75 @@ HTTP NTLM auth
<!-- Basic auth --> <!-- Basic auth -->
<data100> <data100>
HTTP/1.1 401 Need Basic or NTLM auth HTTP/1.1 401 Need Basic or NTLM auth
Server: Microsoft-IIS/5.0 Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 29 Content-Length: 29
WWW-Authenticate: NTLM WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="testrealm" WWW-Authenticate: Basic realm="testrealm"
This is a bad password page! This is a bad password page!
</data100> </data100>
<!-- NTML auth --> <!-- NTML auth -->
<data200> <data200>
HTTP/1.1 401 Need Basic or NTLM auth (2) HTTP/1.1 401 Need Basic or NTLM auth (2)
Server: Microsoft-IIS/5.0 Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 27 Content-Length: 27
WWW-Authenticate: NTLM WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="testrealm" WWW-Authenticate: Basic realm="testrealm"
This is not the real page! This is not the real page!
</data200> </data200>
<data1201> <data1201>
HTTP/1.1 401 NTLM intermediate (2) HTTP/1.1 401 NTLM intermediate (2)
Server: Microsoft-IIS/5.0 Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 33 Content-Length: 33
WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg= WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
This is still not the real page! This is still not the real page!
</data1201> </data1201>
<data1202> <data1202>
HTTP/1.1 200 Things are fine in server land HTTP/1.1 200 Things are fine in server land
Server: Microsoft-IIS/5.0 Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 32 Content-Length: 32
Finally, this is the real page! Finally, this is the real page!
</data1202> </data1202>
<datacheck> <datacheck>
HTTP/1.1 401 Need Basic or NTLM auth HTTP/1.1 401 Need Basic or NTLM auth
Server: Microsoft-IIS/5.0 Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 29 Content-Length: 29
WWW-Authenticate: NTLM WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="testrealm" WWW-Authenticate: Basic realm="testrealm"
This is a bad password page! This is a bad password page!
HTTP/1.1 401 Need Basic or NTLM auth HTTP/1.1 401 Need Basic or NTLM auth
Server: Microsoft-IIS/5.0 Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 29 Content-Length: 29
WWW-Authenticate: NTLM WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="testrealm" WWW-Authenticate: Basic realm="testrealm"
This is a bad password page! This is a bad password page!
HTTP/1.1 401 NTLM intermediate (2) HTTP/1.1 401 NTLM intermediate (2)
Server: Microsoft-IIS/5.0 Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 33 Content-Length: 33
WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg= WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
HTTP/1.1 200 Things are fine in server land HTTP/1.1 200 Things are fine in server land
Server: Microsoft-IIS/5.0 Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 32 Content-Length: 32
Finally, this is the real page! Finally, this is the real page!
</datacheck> </datacheck>

View File

@ -13,75 +13,75 @@ pipelining
<!-- Basic auth --> <!-- Basic auth -->
<data100> <data100>
HTTP/1.1 401 Need Basic or NTLM auth HTTP/1.1 401 Need Basic or NTLM auth
Server: Microsoft-IIS/5.0 Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 29 Content-Length: 29
WWW-Authenticate: NTLM WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="testrealm" WWW-Authenticate: Basic realm="testrealm"
This is a bad password page! This is a bad password page!
</data100> </data100>
<!-- NTML auth --> <!-- NTML auth -->
<data200> <data200>
HTTP/1.1 401 Need Basic or NTLM auth (2) HTTP/1.1 401 Need Basic or NTLM auth (2)
Server: Microsoft-IIS/5.0 Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 27 Content-Length: 27
WWW-Authenticate: NTLM WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="testrealm" WWW-Authenticate: Basic realm="testrealm"
This is not the real page! This is not the real page!
</data200> </data200>
<data1201> <data1201>
HTTP/1.1 401 NTLM intermediate (2) HTTP/1.1 401 NTLM intermediate (2)
Server: Microsoft-IIS/5.0 Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 33 Content-Length: 33
WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg= WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
This is still not the real page! This is still not the real page!
</data1201> </data1201>
<data1202> <data1202>
HTTP/1.1 200 Things are fine in server land HTTP/1.1 200 Things are fine in server land
Server: Microsoft-IIS/5.0 Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 32 Content-Length: 32
Finally, this is the real page! Finally, this is the real page!
</data1202> </data1202>
<datacheck> <datacheck>
HTTP/1.1 401 Need Basic or NTLM auth HTTP/1.1 401 Need Basic or NTLM auth
Server: Microsoft-IIS/5.0 Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 29 Content-Length: 29
WWW-Authenticate: NTLM WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="testrealm" WWW-Authenticate: Basic realm="testrealm"
This is a bad password page! This is a bad password page!
HTTP/1.1 401 Need Basic or NTLM auth HTTP/1.1 401 Need Basic or NTLM auth
Server: Microsoft-IIS/5.0 Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 29 Content-Length: 29
WWW-Authenticate: NTLM WWW-Authenticate: NTLM
WWW-Authenticate: Basic realm="testrealm" WWW-Authenticate: Basic realm="testrealm"
This is a bad password page! This is a bad password page!
HTTP/1.1 401 NTLM intermediate (2) HTTP/1.1 401 NTLM intermediate (2)
Server: Microsoft-IIS/5.0 Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 33 Content-Length: 33
WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg= WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
HTTP/1.1 200 Things are fine in server land HTTP/1.1 200 Things are fine in server land
Server: Microsoft-IIS/5.0 Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 32 Content-Length: 32
Finally, this is the real page! Finally, this is the real page!
</datacheck> </datacheck>

View File

@ -10,17 +10,17 @@ HTTP GET
# Server-side # Server-side
<reply> <reply>
<data> <data>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498" ETag: "21025-dc7-39462498"
Accept-Ranges: bytes Accept-Ranges: bytes
Content-Length: 6 Content-Length: 6
Connection: close Connection: close
Content-Type: text/html Content-Type: text/html
Funny-head: yesyes Funny-head: yesyes
-foo- -foo-
</data> </data>
</reply> </reply>

View File

@ -11,14 +11,14 @@ CURLOPT_PORT
# Server-side # Server-side
<reply> <reply>
<data nocheck="yes"> <data nocheck="yes">
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498" ETag: "21025-dc7-39462498"
Accept-Ranges: bytes Accept-Ranges: bytes
Content-Length: 6 Content-Length: 6
hello hello
</data> </data>
</reply> </reply>

View File

@ -13,14 +13,14 @@ CURLOPT_PROXY
# Server-side # Server-side
<reply> <reply>
<data nocheck="yes"> <data nocheck="yes">
HTTP/1.1 200 OK swsclose HTTP/1.1 200 OK swsclose
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498" ETag: "21025-dc7-39462498"
Accept-Ranges: bytes Accept-Ranges: bytes
Content-Length: 6 Content-Length: 6
hello hello
</data> </data>
</reply> </reply>

View File

@ -10,11 +10,11 @@ multi
# Server-side # Server-side
<reply> <reply>
<data> <data>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Length: 47 Content-Length: 47
file contents should appear once for each file file contents should appear once for each file
</data> </data>
<datacheck> <datacheck>

View File

@ -10,35 +10,35 @@ multi
# Server-side # Server-side
<reply> <reply>
<data1> <data1>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Length: 47 Content-Length: 47
file contents should appear once for each file file contents should appear once for each file
</data1> </data1>
<data2> <data2>
HTTP/1.1 200 OK HTTP/1.1 200 OK
</data2> </data2>
<data3> <data3>
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
</data3> </data3>
<data4> <data4>
Server: test-server/fake Server: test-server/fake
Content-Length: 47 Content-Length: 47
file contents should appear once for each file file contents should appear once for each file
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Length: 47 Content-Length: 47
file contents should appear once for each file file contents should appear once for each file
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Length: 47 Content-Length: 47
file contents should appear once for each file file contents should appear once for each file
</data4> </data4>
</reply> </reply>

View File

@ -10,17 +10,17 @@ HTTP GET
# Server-side # Server-side
<reply> <reply>
<data> <data>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498" ETag: "21025-dc7-39462498"
Accept-Ranges: bytes Accept-Ranges: bytes
Content-Length: 6 Content-Length: 6
Connection: close Connection: close
Content-Type: text/html Content-Type: text/html
Funny-head: yesyes Funny-head: yesyes
-foo- -foo-
</data> </data>
</reply> </reply>

View File

@ -12,14 +12,14 @@ HTTP proxy
# Server-side # Server-side
<reply> <reply>
<data nocheck="yes"> <data nocheck="yes">
HTTP/1.1 200 OK swsclose HTTP/1.1 200 OK swsclose
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498" ETag: "21025-dc7-39462498"
Accept-Ranges: bytes Accept-Ranges: bytes
Content-Length: 6 Content-Length: 6
hello hello
</data> </data>
</reply> </reply>

View File

@ -12,14 +12,14 @@ CURLOPT_PROXY
# Server-side # Server-side
<reply> <reply>
<data nocheck="yes"> <data nocheck="yes">
HTTP/1.1 200 OK swsclose HTTP/1.1 200 OK swsclose
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498" ETag: "21025-dc7-39462498"
Accept-Ranges: bytes Accept-Ranges: bytes
Content-Length: 6 Content-Length: 6
hello hello
</data> </data>
</reply> </reply>

View File

@ -8,12 +8,12 @@ HTTP GET
<reply> <reply>
<data> <data>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Server: test-server/fake Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
Content-Length: 6 Content-Length: 6
Connection: close Connection: close
-foo- -foo-
</data> </data>
</reply> </reply>

View File

@ -11,11 +11,11 @@ multi
# Server-side # Server-side
<reply> <reply>
<data> <data>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Length: 7 Content-Length: 7
MooMoo MooMoo
</data> </data>
</reply> </reply>

View File

@ -13,14 +13,14 @@ type=
# Server-side # Server-side
<reply> <reply>
<data nocheck="yes"> <data nocheck="yes">
HTTP/1.1 200 OK swsclose HTTP/1.1 200 OK swsclose
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498" ETag: "21025-dc7-39462498"
Accept-Ranges: bytes Accept-Ranges: bytes
Content-Length: 6 Content-Length: 6
hello hello
</data> </data>
</reply> </reply>

View File

@ -11,11 +11,11 @@ OPTIONS
# Server-side # Server-side
<reply> <reply>
<data> <data>
RTSP/1.0 200 OK RTSP/1.0 200 OK
Server: RTSPD/libcurl-test Server: RTSPD/libcurl-test
CSeq: 1 CSeq: 1
Public: DESCRIBE, OPTIONS, SETUP, TEARDOWN, PLAY, PAUSE Public: DESCRIBE, OPTIONS, SETUP, TEARDOWN, PLAY, PAUSE
Curl-Private: swsclose Curl-Private: swsclose
</data> </data>
</reply> </reply>

View File

@ -11,37 +11,37 @@ ANNOUNCE
# Server-side # Server-side
<reply> <reply>
<data1> <data1>
RTSP/1.0 200 OK RTSP/1.0 200 OK
Server: RTSPD/libcurl-test Server: RTSPD/libcurl-test
Cseq: 1 Cseq: 1
</data1> </data1>
<data2> <data2>
RTSP/1.0 200 OK RTSP/1.0 200 OK
Server: RTSPD/libcurl-test Server: RTSPD/libcurl-test
Cseq: 2 Cseq: 2
Content-Length: 70 Content-Length: 70
Content-Type: application/sdp Content-Type: application/sdp
v=0 v=0
s=rtspd SDP s=rtspd SDP
i=A fake SDP reply i=A fake SDP reply
u=http://www.curl.example.com/fakesdp.ps u=http://www.curl.example.com/fakesdp.ps
</data2> </data2>
<data3> <data3>
RTSP/1.0 200 Okie Dokie RTSP/1.0 200 Okie Dokie
Server: RTSPD/libcurl-test Server: RTSPD/libcurl-test
Cseq: 3 Cseq: 3
</data3> </data3>
<data4> <data4>
RTSP/1.0 200 OK RTSP/1.0 200 OK
Server: RTSPD/libcurl-test Server: RTSPD/libcurl-test
CSeq: 4 CSeq: 4
Curl-private: swsclose Curl-private: swsclose
Informational: Empty Options Response Informational: Empty Options Response
</data4> </data4>
</reply> </reply>

View File

@ -11,28 +11,28 @@ Mismatch checking
# Server-side # Server-side
<reply> <reply>
<data1> <data1>
RTSP/1.0 200 OK RTSP/1.0 200 OK
Server: RTSPD/libcurl-test Server: RTSPD/libcurl-test
CSeq: 2 CSeq: 2
Public: DESCRIBE, OPTIONS, SETUP, TEARDOWN, PLAY, PAUSE Public: DESCRIBE, OPTIONS, SETUP, TEARDOWN, PLAY, PAUSE
Informational: CSeq Mismatch Informational: CSeq Mismatch
</data1> </data1>
<data2> <data2>
RTSP/1.0 200 OK RTSP/1.0 200 OK
Server: RTSPD/libcurl-test Server: RTSPD/libcurl-test
Session: asdf Session: asdf
CSeq: 999 CSeq: 999
</data2> </data2>
<data3> <data3>
RTSP/1.0 200 OK RTSP/1.0 200 OK
Server: RTSPD/libcurl-test Server: RTSPD/libcurl-test
Session: asdfWRONG Session: asdfWRONG
Informational: Session ID mismatch Informational: Session ID mismatch
Curl-Private: swsclose Curl-Private: swsclose
CSeq: 1000 CSeq: 1000
</data3> </data3>
</reply> </reply>

View File

@ -15,37 +15,37 @@ RTP
# Server-side # Server-side
<reply> <reply>
<data1> <data1>
RTSP/1.0 200 OK RTSP/1.0 200 OK
Server: RTSPD/libcurl-test Server: RTSPD/libcurl-test
Session: asdf Session: asdf
CSeq: 1 CSeq: 1
</data1> </data1>
<data2> <data2>
RTSP/1.0 200 OK RTSP/1.0 200 OK
Server: RTSPD/libcurl-test Server: RTSPD/libcurl-test
CSeq: 2 CSeq: 2
Session: asdf Session: asdf
</data2> </data2>
<data3> <data3>
RTSP/1.0 200 OK RTSP/1.0 200 OK
Server: RTSPD/libcurl-test Server: RTSPD/libcurl-test
Cseq: 3 Cseq: 3
Content-Length: 4 Content-Length: 4
Content-Type: fake/evil Content-Type: fake/evil
$99 $99
</data3> </data3>
<data4> <data4>
RTSP/1.0 200 OK RTSP/1.0 200 OK
Server: RTSPD/libcurl-test Server: RTSPD/libcurl-test
Session: asdf Session: asdf
CSeq: 4 CSeq: 4
</data4> </data4>
<servercmd> <servercmd>

View File

@ -11,52 +11,52 @@ GET_PARAMETER
# Server-side # Server-side
<reply> <reply>
<data1> <data1>
RTSP/1.0 200 OK RTSP/1.0 200 OK
Server: RTSPD/libcurl-test Server: RTSPD/libcurl-test
Session: getparams-test Session: getparams-test
CSeq: 1 CSeq: 1
</data1> </data1>
<data2> <data2>
RTSP/1.0 200 OK RTSP/1.0 200 OK
Server: RTSPD/libcurl-test Server: RTSPD/libcurl-test
Session: getparams-test Session: getparams-test
Content-Type: text/parameters Content-Type: text/parameters
Content-Length: 32 Content-Length: 32
Cseq: 2 Cseq: 2
scale=enormous scale=enormous
speed=ludicrous speed=ludicrous
</data2> </data2>
<data3> <data3>
RTSP/1.0 204 OK RTSP/1.0 204 OK
Server: RTSPD/libcurl-test Server: RTSPD/libcurl-test
Session: getparams-test Session: getparams-test
Cseq: 3 Cseq: 3
</data3> </data3>
<data4> <data4>
RTSP/1.0 200 Okie Dokie RTSP/1.0 200 Okie Dokie
Server: RTSPD/libcurl-test Server: RTSPD/libcurl-test
Session: getparams-test Session: getparams-test
Cseq: 4 Cseq: 4
Content-Length: 37 Content-Length: 37
packets_received: 1000 packets_received: 1000
jitter: 0.314 jitter: 0.314
</data4> </data4>
<data5> <data5>
RTSP/1.0 200 OK RTSP/1.0 200 OK
Server: RTSPD/libcurl-test Server: RTSPD/libcurl-test
Session: getparams-test Session: getparams-test
CSeq: 5 CSeq: 5
Curl-private: swsclose Curl-private: swsclose
Informational: Empty Options Response Informational: Empty Options Response
</data5> </data5>
</reply> </reply>

View File

@ -9,17 +9,17 @@ multi
# Server-side # Server-side
<reply> <reply>
<data> <data>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498" ETag: "21025-dc7-39462498"
Accept-Ranges: bytes Accept-Ranges: bytes
Content-Length: 6 Content-Length: 6
Connection: close Connection: close
Content-Type: text/html Content-Type: text/html
Funny-head: yesyes Funny-head: yesyes
-foo- -foo-
</data> </data>
</reply> </reply>

View File

@ -10,43 +10,43 @@ HTTP Digest auth
# Server-side # Server-side
<reply> <reply>
<data> <data>
HTTP/1.1 100 Continue HTTP/1.1 100 Continue
Server: Microsoft-IIS/5.0 Server: Microsoft-IIS/5.0
Date: Sun, 03 Apr 2005 14:57:45 GMT Date: Sun, 03 Apr 2005 14:57:45 GMT
X-Powered-By: ASP.NET X-Powered-By: ASP.NET
HTTP/1.1 401 authentication please swsbounce HTTP/1.1 401 authentication please swsbounce
Server: Microsoft-IIS/6.0 Server: Microsoft-IIS/6.0
WWW-Authenticate: Digest realm="testrealm", nonce="1053604144" WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 0 Content-Length: 0
</data> </data>
<data1> <data1>
HTTP/1.1 200 A OK HTTP/1.1 200 A OK
Server: Microsoft-IIS/6.0 Server: Microsoft-IIS/6.0
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 3 Content-Length: 3
ok ok
</data1> </data1>
<datacheck> <datacheck>
HTTP/1.1 100 Continue HTTP/1.1 100 Continue
Server: Microsoft-IIS/5.0 Server: Microsoft-IIS/5.0
Date: Sun, 03 Apr 2005 14:57:45 GMT Date: Sun, 03 Apr 2005 14:57:45 GMT
X-Powered-By: ASP.NET X-Powered-By: ASP.NET
HTTP/1.1 401 authentication please swsbounce HTTP/1.1 401 authentication please swsbounce
Server: Microsoft-IIS/6.0 Server: Microsoft-IIS/6.0
WWW-Authenticate: Digest realm="testrealm", nonce="1053604144" WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 0 Content-Length: 0
HTTP/1.1 200 A OK HTTP/1.1 200 A OK
Server: Microsoft-IIS/6.0 Server: Microsoft-IIS/6.0
Content-Type: text/html; charset=iso-8859-1 Content-Type: text/html; charset=iso-8859-1
Content-Length: 3 Content-Length: 3
ok ok
</datacheck> </datacheck>
</reply> </reply>

View File

@ -11,14 +11,14 @@ Duplicate-header
# Server-side # Server-side
<reply> <reply>
<data> <data>
HTTP/1.1 302 eat this! HTTP/1.1 302 eat this!
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Location: this-is-the-first.html Location: this-is-the-first.html
Content-Length: 0 Content-Length: 0
Connection: close Connection: close
Location: and there's a second one too! / moo.html Location: and there's a second one too! / moo.html
</data> </data>
</reply> </reply>

View File

@ -11,14 +11,14 @@ Duplicate-header
# Server-side # Server-side
<reply> <reply>
<data> <data>
HTTP/1.1 200 all good! HTTP/1.1 200 all good!
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Content-Type: text/html Content-Type: text/html
Content-Length: 0 Content-Length: 0
Connection: close Connection: close
Content-Type: changed/my/mind Content-Type: changed/my/mind
</data> </data>
</reply> </reply>

View File

@ -12,23 +12,23 @@ CURLOPT_CLOSESOCKETFUNCTION
# Server-side # Server-side
<reply> <reply>
<data> <data>
HTTP/1.1 302 eat this! HTTP/1.1 302 eat this!
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Location: this-is-the-first.html Location: this-is-the-first.html
Content-Length: 0 Content-Length: 0
Connection: close Connection: close
</data> </data>
<datacheck> <datacheck>
[OPEN] counter: 1 [OPEN] counter: 1
HTTP/1.1 302 eat this! HTTP/1.1 302 eat this!
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Location: this-is-the-first.html Location: this-is-the-first.html
Content-Length: 0 Content-Length: 0
Connection: close Connection: close
[CLOSE] counter: 1 [CLOSE] counter: 1
</datacheck> </datacheck>
</reply> </reply>

View File

@ -9,24 +9,24 @@ HTTP POST
# Server-side # Server-side
<reply> <reply>
<data> <data>
HTTP/1.1 302 OK HTTP/1.1 302 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Location: 5990001 Location: 5990001
Content-Length: 6 Content-Length: 6
Connection: close Connection: close
Content-Type: text/html Content-Type: text/html
-foo- -foo-
</data> </data>
<data1> <data1>
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Transfer-Encoding: chunked Transfer-Encoding: chunked
Connection: close Connection: close
Content-Type: text/html Content-Type: text/html
32 32
this data is slightly larger than the first piece this data is slightly larger than the first piece
@ -35,21 +35,21 @@ this data is slightly larger than the first piece
</data1> </data1>
<datacheck> <datacheck>
HTTP/1.1 302 OK HTTP/1.1 302 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Location: 5990001 Location: 5990001
Content-Length: 6 Content-Length: 6
Connection: close Connection: close
Content-Type: text/html Content-Type: text/html
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake Server: test-server/fake
Transfer-Encoding: chunked Transfer-Encoding: chunked
Connection: close Connection: close
Content-Type: text/html Content-Type: text/html
this data is slightly larger than the first piece this data is slightly larger than the first piece
</datacheck> </datacheck>