test files
authorDaniel Stenberg <daniel@haxx.se>
Fri, 10 Nov 2000 15:24:54 +0000 (15:24 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 10 Nov 2000 15:24:54 +0000 (15:24 +0000)
16 files changed:
tests/data/command1.txt [new file with mode: 0644]
tests/data/command2.txt [new file with mode: 0644]
tests/data/command3.txt [new file with mode: 0644]
tests/data/command4.txt [new file with mode: 0644]
tests/data/http1.txt [new file with mode: 0644]
tests/data/http2.txt [new file with mode: 0644]
tests/data/http3.txt [new file with mode: 0644]
tests/data/http4.txt [new file with mode: 0644]
tests/data/name1.txt [new file with mode: 0644]
tests/data/name2.txt [new file with mode: 0644]
tests/data/name3.txt [new file with mode: 0644]
tests/data/name4.txt [new file with mode: 0644]
tests/data/reply1.txt [new file with mode: 0644]
tests/data/reply2.txt [new file with mode: 0644]
tests/data/reply3.txt [new file with mode: 0644]
tests/data/reply4.txt [new file with mode: 0644]

diff --git a/tests/data/command1.txt b/tests/data/command1.txt
new file mode 100644 (file)
index 0000000..388089e
--- /dev/null
@@ -0,0 +1 @@
+http://%HOSTIP:%HOSTPORT/1
diff --git a/tests/data/command2.txt b/tests/data/command2.txt
new file mode 100644 (file)
index 0000000..2a0a9c0
--- /dev/null
@@ -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 (file)
index 0000000..70fe963
--- /dev/null
@@ -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 (file)
index 0000000..c94a43c
--- /dev/null
@@ -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 (file)
index 0000000..7e4a807
--- /dev/null
@@ -0,0 +1,6 @@
+GET /1 HTTP/1.0\r
+User-Agent: curl/7.4.2-pre3 (sparc-sun-solaris2.7) libcurl 7.4.2-pre3 (SSL 0.9.6)\r
+Host: 127.0.0.1:8999\r
+Pragma: no-cache\r
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
+\r
diff --git a/tests/data/http2.txt b/tests/data/http2.txt
new file mode 100644 (file)
index 0000000..b419267
--- /dev/null
@@ -0,0 +1,6 @@
+GET /2 HTTP/1.0\r
+Authorization: Basic ZmFrZTp1c2Vy\r
+Host: 127.0.0.1:8999\r
+Pragma: no-cache\r
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
+\r
diff --git a/tests/data/http3.txt b/tests/data/http3.txt
new file mode 100644 (file)
index 0000000..94214e1
--- /dev/null
@@ -0,0 +1,9 @@
+POST /3 HTTP/1.0\r
+Authorization: Basic ZmFrZTotdXNlcg==\r
+Host: 127.0.0.1:8999\r
+Pragma: no-cache\r
+Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
+Content-Length: 37\r
+Content-Type: application/x-www-form-urlencoded\r
+\r
+fooo=mooo&pooo=clue&doo=%20%20%20++++\r
diff --git a/tests/data/http4.txt b/tests/data/http4.txt
new file mode 100644 (file)
index 0000000..b4fbff1
--- /dev/null
@@ -0,0 +1,6 @@
+GET /4 HTTP/1.0\r
+Host: 127.0.0.1:8999\r
+Pragma: no-cache\r
+extra-header: here\r
+Accept: replaced\r
+\r
diff --git a/tests/data/name1.txt b/tests/data/name1.txt
new file mode 100644 (file)
index 0000000..c3cde86
--- /dev/null
@@ -0,0 +1 @@
+simple HTTP GET
diff --git a/tests/data/name2.txt b/tests/data/name2.txt
new file mode 100644 (file)
index 0000000..6705006
--- /dev/null
@@ -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 (file)
index 0000000..581a426
--- /dev/null
@@ -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 (file)
index 0000000..dcb5f5e
--- /dev/null
@@ -0,0 +1 @@
+Replaced HTTP headers
diff --git a/tests/data/reply1.txt b/tests/data/reply1.txt
new file mode 100644 (file)
index 0000000..65221c0
--- /dev/null
@@ -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 (file)
index 0000000..57d8bf9
--- /dev/null
@@ -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 (file)
index 0000000..0fca7fe
--- /dev/null
@@ -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 (file)
index 0000000..57d8bf9
--- /dev/null
@@ -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
+
+