summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-01-29 14:36:49 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-01-29 14:36:49 +0000
commit30ec0af109f7225bfadb97d2a9b851000739f5da (patch)
treed4a97c9c9d97a0196f5202b04aca0bbcea71b188
parentf585b66af788d211513016d08bd7f2c5aaee02e0 (diff)
downloadgnurl-30ec0af109f7225bfadb97d2a9b851000739f5da.tar.gz
gnurl-30ec0af109f7225bfadb97d2a9b851000739f5da.tar.bz2
gnurl-30ec0af109f7225bfadb97d2a9b851000739f5da.zip
test case 33, HTTP PUT resume
-rw-r--r--tests/data/Makefile.am3
-rw-r--r--tests/data/command33.txt3
-rw-r--r--tests/data/extra33.txt15
-rw-r--r--tests/data/name33.txt1
-rw-r--r--tests/data/prot33.txt18
-rw-r--r--tests/data/reply33.txt7
6 files changed, 46 insertions, 1 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
index 511540f28..aa944501c 100644
--- a/tests/data/Makefile.am
+++ b/tests/data/Makefile.am
@@ -61,4 +61,5 @@ command29.txt error30.txt name30.txt prot30.txt reply30.txt \
command30.txt name29.txt prot29.txt reply29.txt \
command31.txt name32.txt reply31.txt reply32.txt \
command32.txt prot31.txt reply310001.txt reply320001.txt \
-name31.txt prot32.txt reply310002.txt reply320002.txt
+name31.txt prot32.txt reply310002.txt reply320002.txt \
+command33.txt extra33.txt name33.txt prot33.txt reply33.txt
diff --git a/tests/data/command33.txt b/tests/data/command33.txt
new file mode 100644
index 000000000..b56a0eaa3
--- /dev/null
+++ b/tests/data/command33.txt
@@ -0,0 +1,3 @@
+http://%HOSTIP:%HOSTPORT/33 -Tdata/extra33.txt -C 50
+
+
diff --git a/tests/data/extra33.txt b/tests/data/extra33.txt
new file mode 100644
index 000000000..ca4205b2a
--- /dev/null
+++ b/tests/data/extra33.txt
@@ -0,0 +1,15 @@
+012345678
+012345678
+012345678
+012345678
+012345678
+012345678
+012345678
+012345678
+012345678
+012345678
+012345678
+012345678
+012345678
+012345678
+012345678
diff --git a/tests/data/name33.txt b/tests/data/name33.txt
new file mode 100644
index 000000000..5e6fcaddb
--- /dev/null
+++ b/tests/data/name33.txt
@@ -0,0 +1 @@
+HTTP PUT resume
diff --git a/tests/data/prot33.txt b/tests/data/prot33.txt
new file mode 100644
index 000000000..08b6e5bf6
--- /dev/null
+++ b/tests/data/prot33.txt
@@ -0,0 +1,18 @@
+PUT /33 HTTP/1.0
+Content-Range: bytes 50-149/150
+User-Agent: curl/7.6 (sparc-sun-solaris2.7) libcurl 7.6-pre4 (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, */*
+Content-Length: 100
+
+012345678
+012345678
+012345678
+012345678
+012345678
+012345678
+012345678
+012345678
+012345678
+012345678
diff --git a/tests/data/reply33.txt b/tests/data/reply33.txt
new file mode 100644
index 000000000..8f8cf8522
--- /dev/null
+++ b/tests/data/reply33.txt
@@ -0,0 +1,7 @@
+HTTP/1.1 303 See Other
+Server: fake
+Location: /moo/moo/moo/320002
+
+This Location should be fetched with a GET!
+
+