Commit eaaa1a1f authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

test case 39 added, HTTP location and continue

parent 78b4851d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -67,5 +67,5 @@ command34.txt prot34.txt reply340001.txt name34.txt reply34.txt \
command35.txt  name35.txt     prot35.txt     reply35.txt \
command36.txt  error36.txt  name36.txt  reply36.txt \
command37.txt  name37.txt  prot37.txt  reply37.txt \
command38.txt prot38.txt reply380001.txt \
name38.txt reply38.txt
command38.txt prot38.txt reply380001.txt name38.txt reply38.txt \
command39.txt prot39.txt reply390001.txt name39.txt reply39.txt reply390002.txt
+3 −0
Original line number Diff line number Diff line
http://%HOSTIP:%HOSTPORT/want/39 -L -C 20

tests/data/name39.txt

0 → 100644
+1 −0
Original line number Diff line number Diff line
HTTP GET with location following and -C

tests/data/prot39.txt

0 → 100644
+14 −0
Original line number Diff line number Diff line
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, */*

tests/data/reply39.txt

0 → 100644
+7 −0
Original line number Diff line number Diff line
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
Loading