updated test cases

This commit is contained in:
Daniel Stenberg 2000-11-13 09:44:39 +00:00
parent 27435f0648
commit a58e336d85
21 changed files with 92 additions and 1 deletions

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

@ -0,0 +1 @@
http://%HOSTIP:%HOSTPORT/we/want/that/page/5 -x %HOSTIP:%HOSTPORT

2
tests/data/command6.txt Normal file
View File

@ -0,0 +1,2 @@
http://%HOSTIP:%HOSTPORT/we/want/that/page/6 -b "name=contents;name2=content2"

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

@ -0,0 +1 @@
http://%HOSTIP:%HOSTPORT/we/want/7 -b none -D log/heads7.txt

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

@ -0,0 +1 @@
http://%HOSTIP:%HOSTPORT/we/want/8 -b log/heads7.txt

2
tests/data/command9.txt Normal file
View File

@ -0,0 +1,2 @@
http://%HOSTIP:%HOSTPORT/we/want/9 -F name=daniel -F tool=curl -F file=@data/command9.txt

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

@ -0,0 +1,5 @@
GET http://127.0.0.1:8999/we/want/that/page/5 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/http6.txt Normal file
View File

@ -0,0 +1,6 @@
GET /we/want/that/page/6 HTTP/1.0
Cookie: name=contents;name2=content2
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

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

@ -0,0 +1,5 @@
GET /we/want/7 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/http8.txt Normal file
View File

@ -0,0 +1,6 @@
GET /we/want/8 HTTP/1.0
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Cookie: foobar=name; partmatch=present

23
tests/data/http9.txt Normal file
View File

@ -0,0 +1,23 @@
POST /we/want/9 HTTP/1.0
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Content-Length: 446
Content-Type: multipart/form-data; boundary=curluczemxkcWWsxptLlAImrFQHwQ3W
--curluczemxkcWWsxptLlAImrFQHwQ3W
Content-Disposition: form-data; name="name"
daniel
--curluczemxkcWWsxptLlAImrFQHwQ3W
Content-Disposition: form-data; name="tool"
curl
--curluczemxkcWWsxptLlAImrFQHwQ3W
Content-Disposition: form-data; name="file"; filename="data/command9.txt"
Content-Type: text/plain
http://%HOSTIP:%HOSTPORT/we/want/9 -F name=daniel -F tool=curl -F file=@data/command9.txt
--curluczemxkcWWsxptLlAImrFQHwQ3W--

View File

@ -1 +1 @@
Replaced HTTP headers
Replaced internal and added custom HTTP headers

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

@ -0,0 +1 @@
HTTP over proxy

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

@ -0,0 +1 @@
HTTP with simple cookie send

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

@ -0,0 +1 @@
HTTP with cookie parser and header recording

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

@ -0,0 +1 @@
HTTP with cookie parsing from header file, must follow test 7

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

@ -0,0 +1 @@
HTTP RFC1867-type formposting

7
tests/data/reply5.txt Normal file
View File

@ -0,0 +1,7 @@
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Type: text/html
Funny-head: yesyes

7
tests/data/reply6.txt Normal file
View File

@ -0,0 +1,7 @@
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Type: text/html
Funny-head: yesyes

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

@ -0,0 +1,9 @@
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Type: text/html
Funny-head: yesyes
Set-Cookie: foobar=name; domain=127.0.0.1; path=/;
Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/";
Set-Cookie: partmatch=present; domain=.0.0.1; path=/;

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

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

5
tests/data/reply9.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