mirror of https://github.com/moparisthebest/curl
test case 31 and 32 were added
This commit is contained in:
parent
3a8210c975
commit
2fa0d3dd5f
|
@ -58,4 +58,7 @@ command28.txt name28.txt prot28.txt reply28.txt \
|
|||
command120.txt name120.txt prot120.txt reply120.txt \
|
||||
command121.txt name121.txt prot121.txt reply121.txt \
|
||||
command29.txt error30.txt name30.txt prot30.txt reply30.txt \
|
||||
command30.txt name29.txt prot29.txt reply29.txt
|
||||
command30.txt name29.txt prot29.txt reply29.txt \
|
||||
command31.txt name32.txt reply31.txt reply32.txt \
|
||||
command32.txt prot31.txt reply310001.txt reply320001.txt \
|
||||
name31.txt prot32.txt reply310002.txt reply320002.txt
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
http://%HOSTIP:%HOSTPORT/31 -d mooo=fooo -L
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
http://%HOSTIP:%HOSTPORT/32 -d mooo=fooo -L
|
||||
|
|
@ -0,0 +1 @@
|
|||
HTTP POST and follow Location: (error 301)
|
|
@ -0,0 +1 @@
|
|||
HTTP POST and follow Location: (error 303)
|
|
@ -0,0 +1,9 @@
|
|||
POST /moo/moo/moo/310002 HTTP/1.0
|
||||
User-Agent: curl/7.6 (i686-pc-linux-gnu) libcurl 7.6 (SSL 0.9.5) (ipv6 enabled)
|
||||
Host: 127.0.0.1:8999
|
||||
Pragma: no-cache
|
||||
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
|
||||
Content-Length: 9
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
|
||||
mooo=fooo
|
|
@ -0,0 +1,6 @@
|
|||
GET /moo/moo/moo/320002 HTTP/1.0
|
||||
User-Agent: curl/7.6 (i686-pc-linux-gnu) libcurl 7.6 (SSL 0.9.5) (ipv6 enabled)
|
||||
Host: 127.0.0.1:8999
|
||||
Pragma: no-cache
|
||||
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
HTTP/1.1 301 Moved Permanently
|
||||
Server: fake
|
||||
Location: /moo/moo/moo/310002
|
||||
|
||||
No contents
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
HTTP/1.1 301 Moved Permanently
|
||||
Server: fake
|
||||
Location: /moo/moo/moo/310002
|
||||
|
||||
HTTP/1.1 200 Followed here fine
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
||||
If this is received, the location following worked
|
|
@ -0,0 +1,5 @@
|
|||
HTTP/1.1 200 Followed here fine
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
||||
If this is received, the location following worked
|
|
@ -0,0 +1,7 @@
|
|||
HTTP/1.1 303 See Other
|
||||
Server: fake
|
||||
Location: /moo/moo/moo/320002
|
||||
|
||||
This Location should be fetched with a GET!
|
||||
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
HTTP/1.1 303 See Other
|
||||
Server: fake
|
||||
Location: /moo/moo/moo/320002
|
||||
|
||||
HTTP/1.1 200 Followed here fine
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
||||
If this is received, the location following worked
|
|
@ -0,0 +1,5 @@
|
|||
HTTP/1.1 200 Followed here fine
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
|
||||
If this is received, the location following worked
|
Loading…
Reference in New Issue