]> granicus.if.org Git - curl/commitdiff
test case 39 added, HTTP location and continue
authorDaniel Stenberg <daniel@haxx.se>
Mon, 19 Mar 2001 08:36:08 +0000 (08:36 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 19 Mar 2001 08:36:08 +0000 (08:36 +0000)
tests/data/Makefile.am
tests/data/command39.txt [new file with mode: 0644]
tests/data/name39.txt [new file with mode: 0644]
tests/data/prot39.txt [new file with mode: 0644]
tests/data/reply39.txt [new file with mode: 0644]
tests/data/reply390001.txt [new file with mode: 0644]
tests/data/reply390002.txt [new file with mode: 0644]

index 0ed94935a36cfd1cf3152f9d13a23a741c159b02..f232340218fa24a6876f3961d483ab70e4a09123 100644 (file)
@@ -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 (file)
index 0000000..7311566
--- /dev/null
@@ -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 (file)
index 0000000..aae5ce6
--- /dev/null
@@ -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 (file)
index 0000000..9364067
--- /dev/null
@@ -0,0 +1,14 @@
+GET /want/39 HTTP/1.1\r
+Range: bytes=20-\r
+User-Agent: curl/7.7-beta4 (sparc-sun-solaris2.7) libcurl 7.7-beta4 (SSL 0.9.6) (krb4 enabled)\r
+Host: 127.0.0.1:8999\r
+Pragma: no-cache\r
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
+\r
+GET /want/data/390002.txt?coolsite=yes HTTP/1.1\r
+Range: bytes=20-\r
+User-Agent: curl/7.7-beta4 (sparc-sun-solaris2.7) libcurl 7.7-beta4 (SSL 0.9.6) (krb4 enabled)\r
+Host: 127.0.0.1:8999\r
+Pragma: no-cache\r
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
+\r
diff --git a/tests/data/reply39.txt b/tests/data/reply39.txt
new file mode 100644 (file)
index 0000000..7356123
--- /dev/null
@@ -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 (file)
index 0000000..efb86c6
--- /dev/null
@@ -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 (file)
index 0000000..3d506c1
--- /dev/null
@@ -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