From 14bcdcfcdd785e417724dd3e2ce3cfc8d0d65dfd Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 10 Nov 2000 15:24:54 +0000 Subject: [PATCH] test files --- tests/data/command1.txt | 1 + tests/data/command2.txt | 1 + tests/data/command3.txt | 1 + tests/data/command4.txt | 1 + tests/data/http1.txt | 6 ++++++ tests/data/http2.txt | 6 ++++++ tests/data/http3.txt | 9 +++++++++ tests/data/http4.txt | 6 ++++++ tests/data/name1.txt | 1 + tests/data/name2.txt | 1 + tests/data/name3.txt | 1 + tests/data/name4.txt | 1 + tests/data/reply1.txt | 12 ++++++++++++ tests/data/reply2.txt | 7 +++++++ tests/data/reply3.txt | 8 ++++++++ tests/data/reply4.txt | 7 +++++++ 16 files changed, 69 insertions(+) create mode 100644 tests/data/command1.txt create mode 100644 tests/data/command2.txt create mode 100644 tests/data/command3.txt create mode 100644 tests/data/command4.txt create mode 100644 tests/data/http1.txt create mode 100644 tests/data/http2.txt create mode 100644 tests/data/http3.txt create mode 100644 tests/data/http4.txt create mode 100644 tests/data/name1.txt create mode 100644 tests/data/name2.txt create mode 100644 tests/data/name3.txt create mode 100644 tests/data/name4.txt create mode 100644 tests/data/reply1.txt create mode 100644 tests/data/reply2.txt create mode 100644 tests/data/reply3.txt create mode 100644 tests/data/reply4.txt 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 + + 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 + +