mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
HTTP tests: use CRLF as header seperator according to RFC 2616
Changes LF to CRLF and disables automatic output conversion.
This commit is contained in:
parent
75f00de55c
commit
89c29aa70f
@ -55,11 +55,11 @@ Accept: */*
|
||||
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/1335" mode="text">
|
||||
<file1 name="log/1335">
|
||||
12345
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1335" mode="text">
|
||||
<file2 name="log/stdout1335">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
@ -59,11 +59,11 @@ Accept: */*
|
||||
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/1337" mode="text">
|
||||
<file1 name="log/1337">
|
||||
12345
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1337" mode="text">
|
||||
<file2 name="log/stdout1337">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
@ -56,11 +56,11 @@ Accept: */*
|
||||
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/1339" mode="text">
|
||||
<file1 name="log/1339">
|
||||
12345
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1339" mode="text">
|
||||
<file2 name="log/stdout1339">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
@ -57,11 +57,11 @@ Accept: */*
|
||||
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/name1341" mode="text">
|
||||
<file1 name="log/name1341">
|
||||
12345
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1341" mode="text">
|
||||
<file2 name="log/stdout1341">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
@ -55,7 +55,7 @@ Accept: */*
|
||||
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/1343" mode="text">
|
||||
<file1 name="log/1343">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
@ -66,7 +66,7 @@ Content-Type: text/html
|
||||
12345
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1343" mode="text">
|
||||
<file2 name="log/stdout1343">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
@ -59,7 +59,7 @@ Accept: */*
|
||||
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/1345" mode="text">
|
||||
<file1 name="log/1345">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
@ -71,7 +71,7 @@ Content-Disposition: filename=name1345; charset=funny; option=strange
|
||||
12345
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1345" mode="text">
|
||||
<file2 name="log/stdout1345">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
@ -55,7 +55,7 @@ Accept: */*
|
||||
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/1346" mode="text">
|
||||
<file1 name="log/1346">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
@ -66,7 +66,7 @@ Content-Type: text/html
|
||||
12345
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1346" mode="text">
|
||||
<file2 name="log/stdout1346">
|
||||
</file2>
|
||||
|
||||
</verify>
|
||||
|
@ -59,7 +59,7 @@ Accept: */*
|
||||
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/1347" mode="text">
|
||||
<file1 name="log/1347">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
@ -71,7 +71,7 @@ Content-Disposition: filename=name1347; charset=funny; option=strange
|
||||
12345
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1347" mode="text">
|
||||
<file2 name="log/stdout1347">
|
||||
</file2>
|
||||
|
||||
</verify>
|
||||
|
@ -60,7 +60,7 @@ RETR file1356
|
||||
QUIT
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/file1356" mode="text">
|
||||
<file1 name="log/file1356">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
@ -72,7 +72,7 @@ Content-Disposition: filename=name1356; charset=funny; option=strange
|
||||
MOOOO
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1356" mode="text">
|
||||
<file2 name="log/stdout1356">
|
||||
</file2>
|
||||
|
||||
</verify>
|
||||
|
@ -60,7 +60,7 @@ RETR file1363
|
||||
QUIT
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/file1363" mode="text">
|
||||
<file1 name="log/file1363">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
@ -72,7 +72,7 @@ Content-Disposition: filename=name1363; charset=funny; option=strange
|
||||
MOOOO
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1363" mode="text">
|
||||
<file2 name="log/stdout1363">
|
||||
</file2>
|
||||
|
||||
</verify>
|
||||
|
@ -50,11 +50,11 @@ Accept: */*
|
||||
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/outfile1365" mode="text">
|
||||
<file1 name="log/outfile1365">
|
||||
12345
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1365" mode="text">
|
||||
<file2 name="log/stdout1365">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
@ -51,11 +51,11 @@ Accept: */*
|
||||
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/outfile1367" mode="text">
|
||||
<file1 name="log/outfile1367">
|
||||
12345
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1367" mode="text">
|
||||
<file2 name="log/stdout1367">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
@ -51,11 +51,11 @@ Accept: */*
|
||||
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/outfile1369" mode="text">
|
||||
<file1 name="log/outfile1369">
|
||||
12345
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1369" mode="text">
|
||||
<file2 name="log/stdout1369">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
@ -52,11 +52,11 @@ Accept: */*
|
||||
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/outfile1371" mode="text">
|
||||
<file1 name="log/outfile1371">
|
||||
12345
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1371" mode="text">
|
||||
<file2 name="log/stdout1371">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
@ -50,7 +50,7 @@ Accept: */*
|
||||
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/outfile1373" mode="text">
|
||||
<file1 name="log/outfile1373">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
@ -61,7 +61,7 @@ Content-Type: text/html
|
||||
12345
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1373" mode="text">
|
||||
<file2 name="log/stdout1373">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
@ -51,7 +51,7 @@ Accept: */*
|
||||
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/outfile1375" mode="text">
|
||||
<file1 name="log/outfile1375">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
@ -63,7 +63,7 @@ Content-Disposition: filename=name1375; charset=funny; option=strange
|
||||
12345
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1375" mode="text">
|
||||
<file2 name="log/stdout1375">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
@ -50,7 +50,7 @@ Accept: */*
|
||||
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/outfile1376" mode="text">
|
||||
<file1 name="log/outfile1376">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
@ -61,7 +61,7 @@ Content-Type: text/html
|
||||
12345
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1376" mode="text">
|
||||
<file2 name="log/stdout1376">
|
||||
</file2>
|
||||
|
||||
</verify>
|
||||
|
@ -51,7 +51,7 @@ Accept: */*
|
||||
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/outfile1377" mode="text">
|
||||
<file1 name="log/outfile1377">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
@ -63,7 +63,7 @@ Content-Disposition: filename=name1377; charset=funny; option=strange
|
||||
12345
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1377" mode="text">
|
||||
<file2 name="log/stdout1377">
|
||||
</file2>
|
||||
|
||||
</verify>
|
||||
|
@ -52,7 +52,7 @@ RETR file1386
|
||||
QUIT
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/download1386" mode="text">
|
||||
<file1 name="log/download1386">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
@ -64,7 +64,7 @@ Content-Disposition: filename=name1386; charset=funny; option=strange
|
||||
MOOOO
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1386" mode="text">
|
||||
<file2 name="log/stdout1386">
|
||||
</file2>
|
||||
|
||||
</verify>
|
||||
|
@ -76,8 +76,8 @@ MOOOO
|
||||
250 CWD command successful.
|
||||
229 Entering Passive Mode (stripped)
|
||||
200 I modify TYPE as you wanted
|
||||
213 214
|
||||
150 Binary data connection for 1388 () (214 bytes).
|
||||
213 222
|
||||
150 Binary data connection for 1388 () (222 bytes).
|
||||
226 File transfer complete
|
||||
</file2>
|
||||
<stripfile2>
|
||||
|
@ -77,8 +77,8 @@ MOOOO
|
||||
250 CWD command successful.
|
||||
229 Entering Passive Mode (stripped)
|
||||
200 I modify TYPE as you wanted
|
||||
213 214
|
||||
150 Binary data connection for 1390 () (214 bytes).
|
||||
213 222
|
||||
150 Binary data connection for 1390 () (222 bytes).
|
||||
226 File transfer complete
|
||||
</file2>
|
||||
<stripfile2>
|
||||
|
@ -76,8 +76,8 @@ MOOOO
|
||||
250 CWD command successful.
|
||||
229 Entering Passive Mode (stripped)
|
||||
200 I modify TYPE as you wanted
|
||||
213 214
|
||||
150 Binary data connection for 1392 () (214 bytes).
|
||||
213 222
|
||||
150 Binary data connection for 1392 () (222 bytes).
|
||||
226 File transfer complete
|
||||
</file2>
|
||||
<stripfile2>
|
||||
|
@ -52,7 +52,7 @@ RETR file1393
|
||||
QUIT
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/download1393" mode="text">
|
||||
<file1 name="log/download1393">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
@ -64,7 +64,7 @@ Content-Disposition: filename=name1393; charset=funny; option=strange
|
||||
MOOOO
|
||||
</file1>
|
||||
|
||||
<file2 name="log/stdout1393" mode="text">
|
||||
<file2 name="log/stdout1393">
|
||||
</file2>
|
||||
|
||||
</verify>
|
||||
|
Loading…
Reference in New Issue
Block a user