mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
test case 39 added, HTTP location and continue
This commit is contained in:
parent
78b4851da1
commit
eaaa1a1fd4
@ -67,5 +67,5 @@ command34.txt prot34.txt reply340001.txt name34.txt reply34.txt \
|
|||||||
command35.txt name35.txt prot35.txt reply35.txt \
|
command35.txt name35.txt prot35.txt reply35.txt \
|
||||||
command36.txt error36.txt name36.txt reply36.txt \
|
command36.txt error36.txt name36.txt reply36.txt \
|
||||||
command37.txt name37.txt prot37.txt reply37.txt \
|
command37.txt name37.txt prot37.txt reply37.txt \
|
||||||
command38.txt prot38.txt reply380001.txt \
|
command38.txt prot38.txt reply380001.txt name38.txt reply38.txt \
|
||||||
name38.txt reply38.txt
|
command39.txt prot39.txt reply390001.txt name39.txt reply39.txt reply390002.txt
|
||||||
|
3
tests/data/command39.txt
Normal file
3
tests/data/command39.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
http://%HOSTIP:%HOSTPORT/want/39 -L -C 20
|
||||||
|
|
||||||
|
|
1
tests/data/name39.txt
Normal file
1
tests/data/name39.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
HTTP GET with location following and -C
|
14
tests/data/prot39.txt
Normal file
14
tests/data/prot39.txt
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
GET /want/39 HTTP/1.1
|
||||||
|
Range: bytes=20-
|
||||||
|
User-Agent: curl/7.7-beta4 (sparc-sun-solaris2.7) libcurl 7.7-beta4 (SSL 0.9.6) (krb4 enabled)
|
||||||
|
Host: 127.0.0.1:8999
|
||||||
|
Pragma: no-cache
|
||||||
|
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
|
||||||
|
|
||||||
|
GET /want/data/390002.txt?coolsite=yes HTTP/1.1
|
||||||
|
Range: bytes=20-
|
||||||
|
User-Agent: curl/7.7-beta4 (sparc-sun-solaris2.7) libcurl 7.7-beta4 (SSL 0.9.6) (krb4 enabled)
|
||||||
|
Host: 127.0.0.1:8999
|
||||||
|
Pragma: no-cache
|
||||||
|
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
|
||||||
|
|
7
tests/data/reply39.txt
Normal file
7
tests/data/reply39.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
HTTP/1.1 301 This is a weirdo text message
|
||||||
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||||
|
Server: test-server/fake
|
||||||
|
Location: data/390002.txt?coolsite=yes
|
||||||
|
Connection: close
|
||||||
|
|
||||||
|
This server reply is for testing a simple Location: following
|
12
tests/data/reply390001.txt
Normal file
12
tests/data/reply390001.txt
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
HTTP/1.1 301 This is a weirdo text message
|
||||||
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||||
|
Server: test-server/fake
|
||||||
|
Location: data/390002.txt?coolsite=yes
|
||||||
|
Connection: close
|
||||||
|
|
||||||
|
HTTP/1.1 200 Followed here fine
|
||||||
|
Server: test-server/fake
|
||||||
|
Content-Range: bytes 20-71/91
|
||||||
|
Content-Length: 51
|
||||||
|
|
||||||
|
If this is received, the location following worked
|
6
tests/data/reply390002.txt
Normal file
6
tests/data/reply390002.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
HTTP/1.1 200 Followed here fine
|
||||||
|
Server: test-server/fake
|
||||||
|
Content-Range: bytes 20-71/91
|
||||||
|
Content-Length: 51
|
||||||
|
|
||||||
|
If this is received, the location following worked
|
Loading…
Reference in New Issue
Block a user