diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 0ed94935a36cfd1cf3152f9d13a23a741c159b02..f232340218fa24a6876f3961d483ab70e4a09123 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -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 diff --git a/tests/data/command39.txt b/tests/data/command39.txt new file mode 100644 index 0000000000000000000000000000000000000000..7311566ee80ae4031efddb82c0eaf040d9c384ce --- /dev/null +++ b/tests/data/command39.txt @@ -0,0 +1,3 @@ +http://%HOSTIP:%HOSTPORT/want/39 -L -C 20 + + diff --git a/tests/data/name39.txt b/tests/data/name39.txt new file mode 100644 index 0000000000000000000000000000000000000000..aae5ce653eecfb640e92e90801fe5924a9ff894b --- /dev/null +++ b/tests/data/name39.txt @@ -0,0 +1 @@ +HTTP GET with location following and -C diff --git a/tests/data/prot39.txt b/tests/data/prot39.txt new file mode 100644 index 0000000000000000000000000000000000000000..93640677d68b473a392bf8cf3806b0da7612c4dd --- /dev/null +++ b/tests/data/prot39.txt @@ -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, */* + diff --git a/tests/data/reply39.txt b/tests/data/reply39.txt new file mode 100644 index 0000000000000000000000000000000000000000..735612329eaee83386953db24c62aac4ef3e7727 --- /dev/null +++ b/tests/data/reply39.txt @@ -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 diff --git a/tests/data/reply390001.txt b/tests/data/reply390001.txt new file mode 100644 index 0000000000000000000000000000000000000000..efb86c664718bca8a3a9b9be51ecd872a4a62ef1 --- /dev/null +++ b/tests/data/reply390001.txt @@ -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 diff --git a/tests/data/reply390002.txt b/tests/data/reply390002.txt new file mode 100644 index 0000000000000000000000000000000000000000..3d506c19368915ab24fa3a0605014c2b56a1164a --- /dev/null +++ b/tests/data/reply390002.txt @@ -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