aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-11-10 15:24:54 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-11-10 15:24:54 +0000
commit14bcdcfcdd785e417724dd3e2ce3cfc8d0d65dfd (patch)
tree9a9bf4b7e11b27c8d4ba6df49f2228970277e380
parent3c0194bb72b5e7f3fa8ee7af167027027891f9aa (diff)
test files
-rw-r--r--tests/data/command1.txt1
-rw-r--r--tests/data/command2.txt1
-rw-r--r--tests/data/command3.txt1
-rw-r--r--tests/data/command4.txt1
-rw-r--r--tests/data/http1.txt6
-rw-r--r--tests/data/http2.txt6
-rw-r--r--tests/data/http3.txt9
-rw-r--r--tests/data/http4.txt6
-rw-r--r--tests/data/name1.txt1
-rw-r--r--tests/data/name2.txt1
-rw-r--r--tests/data/name3.txt1
-rw-r--r--tests/data/name4.txt1
-rw-r--r--tests/data/reply1.txt12
-rw-r--r--tests/data/reply2.txt7
-rw-r--r--tests/data/reply3.txt8
-rw-r--r--tests/data/reply4.txt7
16 files changed, 69 insertions, 0 deletions
diff --git a/tests/data/command1.txt b/tests/data/command1.txt
new file mode 100644
index 000000000..388089e4b
--- /dev/null
+++ b/tests/data/command1.txt
@@ -0,0 +1 @@
+http://%HOSTIP:%HOSTPORT/1
diff --git a/tests/data/command2.txt b/tests/data/command2.txt
new file mode 100644
index 000000000..2a0a9c044
--- /dev/null
+++ b/tests/data/command2.txt
@@ -0,0 +1 @@
+ -u fake:user http://%HOSTIP:%HOSTPORT/2
diff --git a/tests/data/command3.txt b/tests/data/command3.txt
new file mode 100644
index 000000000..70fe96315
--- /dev/null
+++ b/tests/data/command3.txt
@@ -0,0 +1 @@
+ -d "fooo=mooo&pooo=clue&doo=%20%20%20++++" -u "fake:-user" http://%HOSTIP:%HOSTPORT/3
diff --git a/tests/data/command4.txt b/tests/data/command4.txt
new file mode 100644
index 000000000..c94a43cf5
--- /dev/null
+++ b/tests/data/command4.txt
@@ -0,0 +1 @@
+ -H "extra-header: here" -H "Accept: replaced" http://%HOSTIP:%HOSTPORT/4
diff --git a/tests/data/http1.txt b/tests/data/http1.txt
new file mode 100644
index 000000000..7e4a807e9
--- /dev/null
+++ b/tests/data/http1.txt
@@ -0,0 +1,6 @@
+GET /1 HTTP/1.0
+User-Agent: curl/7.4.2-pre3 (sparc-sun-solaris2.7) libcurl 7.4.2-pre3 (SSL 0.9.6)
+Host: 127.0.0.1:8999
+Pragma: no-cache
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
+
diff --git a/tests/data/http2.txt b/tests/data/http2.txt
new file mode 100644
index 000000000..b4192679c
--- /dev/null
+++ b/tests/data/http2.txt
@@ -0,0 +1,6 @@
+GET /2 HTTP/1.0
+Authorization: Basic ZmFrZTp1c2Vy
+Host: 127.0.0.1:8999
+Pragma: no-cache
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
+
diff --git a/tests/data/http3.txt b/tests/data/http3.txt
new file mode 100644
index 000000000..94214e162
--- /dev/null
+++ b/tests/data/http3.txt
@@ -0,0 +1,9 @@
+POST /3 HTTP/1.0
+Authorization: Basic ZmFrZTotdXNlcg==
+Host: 127.0.0.1:8999
+Pragma: no-cache
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
+Content-Length: 37
+Content-Type: application/x-www-form-urlencoded
+
+fooo=mooo&pooo=clue&doo=%20%20%20++++
diff --git a/tests/data/http4.txt b/tests/data/http4.txt
new file mode 100644
index 000000000..b4fbff1d2
--- /dev/null
+++ b/tests/data/http4.txt
@@ -0,0 +1,6 @@
+GET /4 HTTP/1.0
+Host: 127.0.0.1:8999
+Pragma: no-cache
+extra-header: here
+Accept: replaced
+
diff --git a/tests/data/name1.txt b/tests/data/name1.txt
new file mode 100644
index 000000000..c3cde869b
--- /dev/null
+++ b/tests/data/name1.txt
@@ -0,0 +1 @@
+simple HTTP GET
diff --git a/tests/data/name2.txt b/tests/data/name2.txt
new file mode 100644
index 000000000..670500639
--- /dev/null
+++ b/tests/data/name2.txt
@@ -0,0 +1 @@
+HTTP GET with user and password
diff --git a/tests/data/name3.txt b/tests/data/name3.txt
new file mode 100644
index 000000000..581a4267a
--- /dev/null
+++ b/tests/data/name3.txt
@@ -0,0 +1 @@
+HTTP POST with user and password
diff --git a/tests/data/name4.txt b/tests/data/name4.txt
new file mode 100644
index 000000000..dcb5f5e98
--- /dev/null
+++ b/tests/data/name4.txt
@@ -0,0 +1 @@
+Replaced HTTP headers
diff --git a/tests/data/reply1.txt b/tests/data/reply1.txt
new file mode 100644
index 000000000..65221c000
--- /dev/null
+++ b/tests/data/reply1.txt
@@ -0,0 +1,12 @@
+HTTP/1.1 200 OK
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake
+Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
+ETag: "21025-dc7-39462498"
+Accept-Ranges: bytes
+Content-Length: 6
+Connection: close
+Content-Type: text/html
+Funny-head: yesyes
+
+<foo>
diff --git a/tests/data/reply2.txt b/tests/data/reply2.txt
new file mode 100644
index 000000000..57d8bf96a
--- /dev/null
+++ b/tests/data/reply2.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/reply3.txt b/tests/data/reply3.txt
new file mode 100644
index 000000000..0fca7fe69
--- /dev/null
+++ b/tests/data/reply3.txt
@@ -0,0 +1,8 @@
+HTTP/1.1 200 OK
+Server: test-server/fake
+Content-Type: text/html
+Content-Length: 0
+
+this is data even though Content-Length is set to zero
+
+
diff --git a/tests/data/reply4.txt b/tests/data/reply4.txt
new file mode 100644
index 000000000..57d8bf96a
--- /dev/null
+++ b/tests/data/reply4.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
+
+