aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-11-13 09:44:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-11-13 09:44:39 +0000
commita58e336d856d4e9674c9c8f04309d3836ba05fd8 (patch)
treecf2246bd832cce78d2cbf4de14cb90674470fd8e /tests
parent27435f0648f61d515d1e2784939bd88b8c65988c (diff)
updated test cases
Diffstat (limited to 'tests')
-rw-r--r--tests/data/command5.txt1
-rw-r--r--tests/data/command6.txt2
-rw-r--r--tests/data/command7.txt1
-rw-r--r--tests/data/command8.txt1
-rw-r--r--tests/data/command9.txt2
-rw-r--r--tests/data/http5.txt5
-rw-r--r--tests/data/http6.txt6
-rw-r--r--tests/data/http7.txt5
-rw-r--r--tests/data/http8.txt6
-rw-r--r--tests/data/http9.txt23
-rw-r--r--tests/data/name4.txt2
-rw-r--r--tests/data/name5.txt1
-rw-r--r--tests/data/name6.txt1
-rw-r--r--tests/data/name7.txt1
-rw-r--r--tests/data/name8.txt1
-rw-r--r--tests/data/name9.txt1
-rw-r--r--tests/data/reply5.txt7
-rw-r--r--tests/data/reply6.txt7
-rw-r--r--tests/data/reply7.txt9
-rw-r--r--tests/data/reply8.txt6
-rw-r--r--tests/data/reply9.txt5
21 files changed, 92 insertions, 1 deletions
diff --git a/tests/data/command5.txt b/tests/data/command5.txt
new file mode 100644
index 000000000..f0fb2677d
--- /dev/null
+++ b/tests/data/command5.txt
@@ -0,0 +1 @@
+http://%HOSTIP:%HOSTPORT/we/want/that/page/5 -x %HOSTIP:%HOSTPORT
diff --git a/tests/data/command6.txt b/tests/data/command6.txt
new file mode 100644
index 000000000..a0b979842
--- /dev/null
+++ b/tests/data/command6.txt
@@ -0,0 +1,2 @@
+http://%HOSTIP:%HOSTPORT/we/want/that/page/6 -b "name=contents;name2=content2"
+
diff --git a/tests/data/command7.txt b/tests/data/command7.txt
new file mode 100644
index 000000000..0f7f85e7b
--- /dev/null
+++ b/tests/data/command7.txt
@@ -0,0 +1 @@
+http://%HOSTIP:%HOSTPORT/we/want/7 -b none -D log/heads7.txt
diff --git a/tests/data/command8.txt b/tests/data/command8.txt
new file mode 100644
index 000000000..b7437cf2a
--- /dev/null
+++ b/tests/data/command8.txt
@@ -0,0 +1 @@
+http://%HOSTIP:%HOSTPORT/we/want/8 -b log/heads7.txt
diff --git a/tests/data/command9.txt b/tests/data/command9.txt
new file mode 100644
index 000000000..b0846bb2f
--- /dev/null
+++ b/tests/data/command9.txt
@@ -0,0 +1,2 @@
+http://%HOSTIP:%HOSTPORT/we/want/9 -F name=daniel -F tool=curl -F file=@data/command9.txt
+
diff --git a/tests/data/http5.txt b/tests/data/http5.txt
new file mode 100644
index 000000000..798093083
--- /dev/null
+++ b/tests/data/http5.txt
@@ -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, */*
+
diff --git a/tests/data/http6.txt b/tests/data/http6.txt
new file mode 100644
index 000000000..fee9d8013
--- /dev/null
+++ b/tests/data/http6.txt
@@ -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, */*
+
diff --git a/tests/data/http7.txt b/tests/data/http7.txt
new file mode 100644
index 000000000..0c8f2f9f8
--- /dev/null
+++ b/tests/data/http7.txt
@@ -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, */*
+
diff --git a/tests/data/http8.txt b/tests/data/http8.txt
new file mode 100644
index 000000000..efe5eac36
--- /dev/null
+++ b/tests/data/http8.txt
@@ -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
+
diff --git a/tests/data/http9.txt b/tests/data/http9.txt
new file mode 100644
index 000000000..deffd74d5
--- /dev/null
+++ b/tests/data/http9.txt
@@ -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--
diff --git a/tests/data/name4.txt b/tests/data/name4.txt
index dcb5f5e98..df748d375 100644
--- a/tests/data/name4.txt
+++ b/tests/data/name4.txt
@@ -1 +1 @@
-Replaced HTTP headers
+Replaced internal and added custom HTTP headers
diff --git a/tests/data/name5.txt b/tests/data/name5.txt
new file mode 100644
index 000000000..de7260410
--- /dev/null
+++ b/tests/data/name5.txt
@@ -0,0 +1 @@
+HTTP over proxy
diff --git a/tests/data/name6.txt b/tests/data/name6.txt
new file mode 100644
index 000000000..5cfcf8719
--- /dev/null
+++ b/tests/data/name6.txt
@@ -0,0 +1 @@
+HTTP with simple cookie send
diff --git a/tests/data/name7.txt b/tests/data/name7.txt
new file mode 100644
index 000000000..8dd34dee3
--- /dev/null
+++ b/tests/data/name7.txt
@@ -0,0 +1 @@
+HTTP with cookie parser and header recording
diff --git a/tests/data/name8.txt b/tests/data/name8.txt
new file mode 100644
index 000000000..d3571f471
--- /dev/null
+++ b/tests/data/name8.txt
@@ -0,0 +1 @@
+HTTP with cookie parsing from header file, must follow test 7
diff --git a/tests/data/name9.txt b/tests/data/name9.txt
new file mode 100644
index 000000000..82d7b5899
--- /dev/null
+++ b/tests/data/name9.txt
@@ -0,0 +1 @@
+HTTP RFC1867-type formposting
diff --git a/tests/data/reply5.txt b/tests/data/reply5.txt
new file mode 100644
index 000000000..57d8bf96a
--- /dev/null
+++ b/tests/data/reply5.txt
@@ -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
+
+
diff --git a/tests/data/reply6.txt b/tests/data/reply6.txt
new file mode 100644
index 000000000..57d8bf96a
--- /dev/null
+++ b/tests/data/reply6.txt
@@ -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
+
+
diff --git a/tests/data/reply7.txt b/tests/data/reply7.txt
new file mode 100644
index 000000000..9b0a2a9bc
--- /dev/null
+++ b/tests/data/reply7.txt
@@ -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=/;
+
diff --git a/tests/data/reply8.txt b/tests/data/reply8.txt
new file mode 100644
index 000000000..177ca0994
--- /dev/null
+++ b/tests/data/reply8.txt
@@ -0,0 +1,6 @@
+HTTP/1.1 200 OK
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+
+
+
diff --git a/tests/data/reply9.txt b/tests/data/reply9.txt
new file mode 100644
index 000000000..7cf888e06
--- /dev/null
+++ b/tests/data/reply9.txt
@@ -0,0 +1,5 @@
+HTTP/1.1 200 OK
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+
+blablabla