Added two tests for multiple URLs (26 + 27)

This commit is contained in:
Daniel Stenberg 2001-01-09 12:24:08 +00:00
parent 19d3fd1185
commit a84625eca6
9 changed files with 41 additions and 2 deletions

View 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

4
tests/data/command26.txt Normal file
View File

@ -0,0 +1,4 @@
http://%HOSTIP:%HOSTPORT/want/25 -o - -o -

1
tests/data/command27.txt Normal file
View File

@ -0,0 +1 @@
http://%HOSTIP:%HOSTPORT/want/25 http://%HOSTIP:%HOSTPORT/want/24 http://%HOSTIP:%HOSTPORT/want/22

1
tests/data/name26.txt Normal file
View File

@ -0,0 +1 @@
specify more -o than URLs

1
tests/data/name27.txt Normal file
View File

@ -0,0 +1 @@
getting three URLs in one command line (to stdout)

6
tests/data/prot26.txt Normal file
View File

@ -0,0 +1,6 @@
GET /want/25 HTTP/1.0
User-Agent: curl/7.6-pre1 (sparc-sun-solaris2.7) libcurl 7.5.2 (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, */*

6
tests/data/prot27.txt Normal file
View File

@ -0,0 +1,6 @@
GET /want/22 HTTP/1.0
User-Agent: curl/7.6-pre1 (sparc-sun-solaris2.7) libcurl 7.6-pre1 (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, */*

5
tests/data/reply26.txt Normal file
View File

@ -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!

14
tests/data/stdout27.txt Normal file
View File

@ -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