diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 02c32a6c61caa9ea1ae8de39bad545f484bba697..280c7b1de5979851f215e277d78c365539f54c64 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -56,4 +56,6 @@ command26.txt prot26.txt command27.txt prot27.txt \ name26.txt reply26.txt name27.txt stdout27.txt \ command28.txt name28.txt prot28.txt reply28.txt \ command120.txt name120.txt prot120.txt reply120.txt \ -command121.txt name121.txt prot121.txt reply121.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 diff --git a/tests/data/command29.txt b/tests/data/command29.txt new file mode 100644 index 0000000000000000000000000000000000000000..4e2dc3c5808abb9c63a2edfd7cdfaf9410e48034 --- /dev/null +++ b/tests/data/command29.txt @@ -0,0 +1 @@ +-C 200 http://%HOSTIP:%HOSTPORT/29 diff --git a/tests/data/command30.txt b/tests/data/command30.txt new file mode 100644 index 0000000000000000000000000000000000000000..c0140914b1820783e1a8ffd0e0021b858dfd72fe --- /dev/null +++ b/tests/data/command30.txt @@ -0,0 +1 @@ +http://%HOSTIP:%HOSTPORT/30 diff --git a/tests/data/error30.txt b/tests/data/error30.txt new file mode 100644 index 0000000000000000000000000000000000000000..3c032078a4a21c5c51d3c93d91717c1dabbb8cd0 --- /dev/null +++ b/tests/data/error30.txt @@ -0,0 +1 @@ +18 diff --git a/tests/data/name29.txt b/tests/data/name29.txt new file mode 100644 index 0000000000000000000000000000000000000000..10084f4b0ea6539f1f375f5fb37909023e9cf579 --- /dev/null +++ b/tests/data/name29.txt @@ -0,0 +1 @@ +HTTP download resume with Content-Length validity diff --git a/tests/data/name30.txt b/tests/data/name30.txt new file mode 100644 index 0000000000000000000000000000000000000000..4945ee27527d393e694fe9c00b34c80bc3e0c173 --- /dev/null +++ b/tests/data/name30.txt @@ -0,0 +1 @@ +HTTP GET uncomplete document \ No newline at end of file diff --git a/tests/data/prot29.txt b/tests/data/prot29.txt new file mode 100644 index 0000000000000000000000000000000000000000..b79a9eb3039a1dfede6a2f0b0b6a73532ffe4880 --- /dev/null +++ b/tests/data/prot29.txt @@ -0,0 +1,7 @@ +GET /29 HTTP/1.0 +Range: bytes=200- +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, */* + diff --git a/tests/data/prot30.txt b/tests/data/prot30.txt new file mode 100644 index 0000000000000000000000000000000000000000..cb4ddfe46f477ce8f6bed5ab50128a9b40256a04 --- /dev/null +++ b/tests/data/prot30.txt @@ -0,0 +1,6 @@ +GET /30 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, */* + diff --git a/tests/data/reply29.txt b/tests/data/reply29.txt new file mode 100644 index 0000000000000000000000000000000000000000..dd35000af612afa77fbf7832014f380a5e4b3fd5 --- /dev/null +++ b/tests/data/reply29.txt @@ -0,0 +1,9 @@ +HTTP/1.1 200 OK +Server: fake +Content-Range: bytes 200-3526/3527 +Content-Length: 84 + + +The Content-Range header's contents above aren't really genuine for this +content. + diff --git a/tests/data/reply30.txt b/tests/data/reply30.txt new file mode 100644 index 0000000000000000000000000000000000000000..abe711d938a4ca4ea23442f4eee96c7d93b4abbf --- /dev/null +++ b/tests/data/reply30.txt @@ -0,0 +1,7 @@ +HTTP/1.1 200 OK +Server: fake +Content-Length: 8400 + +This file is a lot smaller than 8400 and thus curl should return an error +for this. +