Skip to content

Commit

Permalink
added test 29 and 30, HTTP resume and partial download tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Jan 27, 2001
1 parent c8a546c commit 3cb3d43
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/data/Makefile.am
Expand Up @@ -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
1 change: 1 addition & 0 deletions tests/data/command29.txt
@@ -0,0 +1 @@
-C 200 http://%HOSTIP:%HOSTPORT/29
1 change: 1 addition & 0 deletions tests/data/command30.txt
@@ -0,0 +1 @@
http://%HOSTIP:%HOSTPORT/30
1 change: 1 addition & 0 deletions tests/data/error30.txt
@@ -0,0 +1 @@
18
1 change: 1 addition & 0 deletions tests/data/name29.txt
@@ -0,0 +1 @@
HTTP download resume with Content-Length validity
1 change: 1 addition & 0 deletions tests/data/name30.txt
@@ -0,0 +1 @@
HTTP GET uncomplete document
7 changes: 7 additions & 0 deletions 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, */*

6 changes: 6 additions & 0 deletions 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, */*

9 changes: 9 additions & 0 deletions 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.

7 changes: 7 additions & 0 deletions 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.

0 comments on commit 3cb3d43

Please sign in to comment.