HTTP tests: use CRLF as header seperator according to RFC 2616
authorMarc Hoersken <info@marc-hoersken.de>
Sat, 1 Feb 2014 12:47:00 +0000 (13:47 +0100)
committerMarc Hoersken <info@marc-hoersken.de>
Sat, 1 Feb 2014 12:47:00 +0000 (13:47 +0100)
tests/data/test1029
tests/data/test1098

index 9c2bc5f..2ffc7c6 100644 (file)
@@ -12,11 +12,11 @@ followlocation
 # Server-side
 <reply>
 <data nocheck="yes">
-HTTP/1.1 301 This is a weirdo text message swsclose
-Location: data/10290002.txt?coolsite=yes
-Content-Length: 62
-Connection: close
-
+HTTP/1.1 301 This is a weirdo text message swsclose\r
+Location: data/10290002.txt?coolsite=yes\r
+Content-Length: 62\r
+Connection: close\r
+\r
 This server reply is for testing a simple Location: following
 </data>
 </reply>
@@ -45,12 +45,12 @@ Host: %HOSTIP:%HTTPPORT
 Accept: */*\r
 \r
 </protocol>
-<stdout mode="text">
-HTTP/1.1 301 This is a weirdo text message swsclose
-Location: data/10290002.txt?coolsite=yes
-Content-Length: 62
-Connection: close
-
+<stdout>
+HTTP/1.1 301 This is a weirdo text message swsclose\r
+Location: data/10290002.txt?coolsite=yes\r
+Content-Length: 62\r
+Connection: close\r
+\r
 This server reply is for testing a simple Location: following
 http://%HOSTIP:%HTTPPORT/we/want/our/data/10290002.txt?coolsite=yes
 </stdout>
index b5c45cb..9805648 100644 (file)
@@ -11,10 +11,10 @@ CURLOPT_PROXY
 # Server-side
 <reply>
 <data nocheck="yes">
-HTTP/1.1 200 OK
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Content-Length: 6
-
+HTTP/1.1 200 OK\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Content-Length: 6\r
+\r
 hello
 </data>
 
@@ -57,16 +57,16 @@ Accept: */*
 Proxy-Connection: Keep-Alive\r
 \r
 </protocol>
-<stdout mode="text">
-HTTP/1.1 200 OK
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Content-Length: 6
-
+<stdout>
+HTTP/1.1 200 OK\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Content-Length: 6\r
+\r
 hello
-HTTP/1.1 200 OK
-Date: Thu, 09 Nov 2010 14:49:00 GMT
-Content-Length: 6
-
+HTTP/1.1 200 OK\r
+Date: Thu, 09 Nov 2010 14:49:00 GMT\r
+Content-Length: 6\r
+\r
 hello
 </stdout>
 </verify>