more test case data

This commit is contained in:
Daniel Stenberg 2000-11-13 16:05:39 +00:00
parent 6736c1610c
commit aa9a60287d
27 changed files with 118 additions and 0 deletions

3
tests/data/command10.txt Normal file
View File

@ -0,0 +1,3 @@
http://%HOSTIP:%HOSTPORT/we/want/10 -T data/command10.txt

3
tests/data/command11.txt Normal file
View File

@ -0,0 +1,3 @@
http://%HOSTIP:%HOSTPORT/want/11 -L

3
tests/data/command12.txt Normal file
View File

@ -0,0 +1,3 @@
http://%HOSTIP:%HOSTPORT/want/12 -r 100-200

3
tests/data/command13.txt Normal file
View File

@ -0,0 +1,3 @@
http://%HOSTIP:%HOSTPORT/want/13 -X DELETE

3
tests/data/command14.txt Normal file
View File

@ -0,0 +1,3 @@
http://%HOSTIP:%HOSTPORT/want/14 -i --head

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

@ -0,0 +1,4 @@
http://%HOSTIP:%HOSTPORT/want/15 --write-out '%{url_effective} %{http_code} %{size_download}\n'

9
tests/data/http10.txt Normal file
View File

@ -0,0 +1,9 @@
PUT /we/want/10 HTTP/1.0
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Content-Length: 60
http://%HOSTIP:%HOSTPORT/we/want/10 -T data/command10.txt

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

@ -0,0 +1,5 @@
GET /want/data/110002.txt?coolsite=yes HTTP/1.0
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

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

@ -0,0 +1,6 @@
GET /want/12 HTTP/1.0
Range: bytes=100-200
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

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

@ -0,0 +1,5 @@
DELETE /want/13 HTTP/1.0
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

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

@ -0,0 +1,6 @@
HEAD /want/14 HTTP/1.0
User-Agent: curl/7.4.2-pre4 (sparc-sun-solaris2.7) libcurl 7.4.2-pre4
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

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

@ -0,0 +1,5 @@
GET /want/15 HTTP/1.0
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

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

@ -0,0 +1 @@
simple HTTP PUT from file

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

@ -0,0 +1 @@
simple HTTP Location: following

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

@ -0,0 +1 @@
HTTP range support

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

@ -0,0 +1 @@
HTTP custom request 'DELETE'

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

@ -0,0 +1 @@
HTTP HEAD

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

@ -0,0 +1 @@
--write-out test

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

@ -0,0 +1,5 @@
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
blablabla

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

@ -0,0 +1,6 @@
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/110002.txt?coolsite=yes
This server reply is for testing a simple Location: following

View File

@ -0,0 +1,10 @@
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/110002.txt?coolsite=yes
HTTP/1.1 200 Followed here fine
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
If this is received, the location following worked

View File

@ -0,0 +1,5 @@
HTTP/1.1 200 Followed here fine
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
If this is received, the location following worked

15
tests/data/reply12.txt Normal file
View File

@ -0,0 +1,15 @@
HTTP/1.1 206 Partial Content
Date: Mon, 13 Nov 2000 13:41:09 GMT
Server: Apache/1.3.11 (Unix) PHP/3.0.14
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
ETag: "21025-dc7-39462498"
Accept-Ranges: bytes
Content-Length: 101
Content-Range: bytes 100-200/3527
Connection: close
Content-Type: text/html
ink="#ffffff" vlink="#cccccc">
<table width=100% cellspacing=0 cellpadding=0 border=0>
<tr>
<td co

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

@ -0,0 +1,5 @@
HTTP/1.1 200 Read you
Deleted: suppose we got a header like this! ;-)
blabla custom request result

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

@ -0,0 +1,4 @@
HTTP/1.1 200 OK
Server: thebest/1.0
no?

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

@ -0,0 +1,6 @@
HTTP/1.4 200 OK
Fake: yes
Fake: yes
Fake: yes
Repeated nonsense-headers

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

@ -0,0 +1 @@
http://127.0.0.1:8999/want/15 200 26.000