mirror of https://github.com/moparisthebest/curl
HTTP tests: use CRLF as header seperator according to RFC 2616
This commit is contained in:
parent
9f42205dcc
commit
2c49f2e3db
|
@ -12,11 +12,11 @@ followlocation
|
||||||
# Server-side
|
# Server-side
|
||||||
<reply>
|
<reply>
|
||||||
<data nocheck="yes">
|
<data nocheck="yes">
|
||||||
HTTP/1.1 301 This is a weirdo text message swsclose
|
HTTP/1.1 301 This is a weirdo text message swsclose
|
||||||
Location: data/10290002.txt?coolsite=yes
|
Location: data/10290002.txt?coolsite=yes
|
||||||
Content-Length: 62
|
Content-Length: 62
|
||||||
Connection: close
|
Connection: close
|
||||||
|
|
||||||
This server reply is for testing a simple Location: following
|
This server reply is for testing a simple Location: following
|
||||||
</data>
|
</data>
|
||||||
</reply>
|
</reply>
|
||||||
|
@ -45,12 +45,12 @@ Host: %HOSTIP:%HTTPPORT
|
||||||
Accept: */*
|
Accept: */*
|
||||||
|
|
||||||
</protocol>
|
</protocol>
|
||||||
<stdout mode="text">
|
<stdout>
|
||||||
HTTP/1.1 301 This is a weirdo text message swsclose
|
HTTP/1.1 301 This is a weirdo text message swsclose
|
||||||
Location: data/10290002.txt?coolsite=yes
|
Location: data/10290002.txt?coolsite=yes
|
||||||
Content-Length: 62
|
Content-Length: 62
|
||||||
Connection: close
|
Connection: close
|
||||||
|
|
||||||
This server reply is for testing a simple Location: following
|
This server reply is for testing a simple Location: following
|
||||||
http://%HOSTIP:%HTTPPORT/we/want/our/data/10290002.txt?coolsite=yes
|
http://%HOSTIP:%HTTPPORT/we/want/our/data/10290002.txt?coolsite=yes
|
||||||
</stdout>
|
</stdout>
|
||||||
|
|
|
@ -11,10 +11,10 @@ CURLOPT_PROXY
|
||||||
# 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
|
||||||
Content-Length: 6
|
Content-Length: 6
|
||||||
|
|
||||||
hello
|
hello
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
|
@ -57,16 +57,16 @@ Accept: */*
|
||||||
Proxy-Connection: Keep-Alive
|
Proxy-Connection: Keep-Alive
|
||||||
|
|
||||||
</protocol>
|
</protocol>
|
||||||
<stdout mode="text">
|
<stdout>
|
||||||
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
|
||||||
Content-Length: 6
|
Content-Length: 6
|
||||||
|
|
||||||
hello
|
hello
|
||||||
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
|
||||||
Content-Length: 6
|
Content-Length: 6
|
||||||
|
|
||||||
hello
|
hello
|
||||||
</stdout>
|
</stdout>
|
||||||
</verify>
|
</verify>
|
||||||
|
|
Loading…
Reference in New Issue