diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-03-19 08:36:08 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-03-19 08:36:08 +0000 |
commit | eaaa1a1fd48e5fe11c0d28684382e2c165b72446 (patch) | |
tree | c110f6442780649fb1283e18af8bfb26610660f3 /tests | |
parent | 78b4851da1e9041618095e4e8f486be2d2712b39 (diff) | |
download | curl-eaaa1a1fd48e5fe11c0d28684382e2c165b72446.tar.gz |
test case 39 added, HTTP location and continue
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/Makefile.am | 4 | ||||
-rw-r--r-- | tests/data/command39.txt | 3 | ||||
-rw-r--r-- | tests/data/name39.txt | 1 | ||||
-rw-r--r-- | tests/data/prot39.txt | 14 | ||||
-rw-r--r-- | tests/data/reply39.txt | 7 | ||||
-rw-r--r-- | tests/data/reply390001.txt | 12 | ||||
-rw-r--r-- | tests/data/reply390002.txt | 6 |
7 files changed, 45 insertions, 2 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 0ed94935a..f23234021 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 000000000..7311566ee --- /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 000000000..aae5ce653 --- /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 000000000..93640677d --- /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 000000000..735612329 --- /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 000000000..efb86c664 --- /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 000000000..3d506c193 --- /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 |