]> granicus.if.org Git - curl/commitdiff
Added two tests for multiple URLs (26 + 27)
authorDaniel Stenberg <daniel@haxx.se>
Tue, 9 Jan 2001 12:24:08 +0000 (12:24 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 9 Jan 2001 12:24:08 +0000 (12:24 +0000)
tests/data/Makefile.am
tests/data/command26.txt [new file with mode: 0644]
tests/data/command27.txt [new file with mode: 0644]
tests/data/name26.txt [new file with mode: 0644]
tests/data/name27.txt [new file with mode: 0644]
tests/data/prot26.txt [new file with mode: 0644]
tests/data/prot27.txt [new file with mode: 0644]
tests/data/reply26.txt [new file with mode: 0644]
tests/data/stdout27.txt [new file with mode: 0644]

index 82448af55338321267ea53ea5b5a75f9f2b07cfd..79492175141572ce53767d072114fd578e08178a 100644 (file)
@@ -51,5 +51,6 @@ command6.txt      name12.txt        prot3.txt         upload109.txt \
 command7.txt      name13.txt        prot4.txt         upload112.txt \
 command8.txt      name14.txt        prot5.txt \
 command9.txt      name15.txt        prot6.txt \
-error111.txt      name16.txt        prot7.txt
-
+error111.txt      name16.txt        prot7.txt \
+command26.txt  prot26.txt     command27.txt  prot27.txt \
+name26.txt     reply26.txt    name27.txt     stdout27.txt 
diff --git a/tests/data/command26.txt b/tests/data/command26.txt
new file mode 100644 (file)
index 0000000..4b591be
--- /dev/null
@@ -0,0 +1,4 @@
+http://%HOSTIP:%HOSTPORT/want/25 -o - -o -
+
+
+
diff --git a/tests/data/command27.txt b/tests/data/command27.txt
new file mode 100644 (file)
index 0000000..21e2a9c
--- /dev/null
@@ -0,0 +1 @@
+http://%HOSTIP:%HOSTPORT/want/25 http://%HOSTIP:%HOSTPORT/want/24 http://%HOSTIP:%HOSTPORT/want/22
diff --git a/tests/data/name26.txt b/tests/data/name26.txt
new file mode 100644 (file)
index 0000000..4c300b2
--- /dev/null
@@ -0,0 +1 @@
+specify more -o than URLs
diff --git a/tests/data/name27.txt b/tests/data/name27.txt
new file mode 100644 (file)
index 0000000..90a851f
--- /dev/null
@@ -0,0 +1 @@
+getting three URLs in one command line (to stdout)
diff --git a/tests/data/prot26.txt b/tests/data/prot26.txt
new file mode 100644 (file)
index 0000000..de35402
--- /dev/null
@@ -0,0 +1,6 @@
+GET /want/25 HTTP/1.0\r
+User-Agent: curl/7.6-pre1 (sparc-sun-solaris2.7) libcurl 7.5.2 (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/prot27.txt b/tests/data/prot27.txt
new file mode 100644 (file)
index 0000000..98355c3
--- /dev/null
@@ -0,0 +1,6 @@
+GET /want/22 HTTP/1.0\r
+User-Agent: curl/7.6-pre1 (sparc-sun-solaris2.7) libcurl 7.6-pre1 (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/reply26.txt b/tests/data/reply26.txt
new file mode 100644 (file)
index 0000000..5839f8d
--- /dev/null
@@ -0,0 +1,5 @@
+HTTP/1.1 301 This is a weirdo text message
+Server: test-server/fake
+Location: data/reply/25
+
+Redirect to the same URL again!
diff --git a/tests/data/stdout27.txt b/tests/data/stdout27.txt
new file mode 100644 (file)
index 0000000..6c6fe7e
--- /dev/null
@@ -0,0 +1,14 @@
+HTTP/1.1 301 This is a weirdo text message
+Server: test-server/fake
+Location: data/reply/25
+
+Redirect to the same URL again!
+HTTP/1.1 404 BAD BOY
+Content-Type: text/html
+
+This silly page doesn't reaaaaaly exist so you should not get it.
+
+HTTP/1.1 200 OK
+Funny-head: yesyes
+
+This is the proof it works