From 20690e412d5174de44233786c818a906d9e2887a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 25 Jan 2011 18:09:54 +0100 Subject: tests: more multiple headers checks --- tests/data/Makefile.am | 2 +- tests/data/test1121 | 49 ++++++++++++++++++++++++++++++++++++++++++ tests/data/test581 | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 108 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1121 create mode 100644 tests/data/test581 diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 6f4e77a6b..a46837044 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -69,7 +69,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \ test569 test570 test571 test572 test804 test805 test806 test807 test573 \ test313 test1115 test578 test579 test1116 test1200 test1201 test1202 \ test1203 test1117 test1118 test1119 test1120 test1300 test1301 test1302 \ - test1303 test320 test321 test322 test323 test324 + test1303 test320 test321 test322 test323 test324 test1121 test581 filecheck: @mkdir test-place; \ diff --git a/tests/data/test1121 b/tests/data/test1121 new file mode 100644 index 000000000..e704e05fa --- /dev/null +++ b/tests/data/test1121 @@ -0,0 +1,49 @@ + + + +HTTP + + +# +# Server-side + + +HTTP/1.0 200 OK +Server: test-server/fake +Content-Type: text/html +Content-Length: 6 + +blaha + + + +# +# Client-side + + +http + + +HTTP multiple provided Host: headers + + +-H "Host: host1" -H "Host: host2" -H "Host: host3" http://%HOSTIP:%HTTPPORT/1121 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1121 HTTP/1.1 +Accept: */* +Host: host1 +Host: host2 +Host: host3 + + + + diff --git a/tests/data/test581 b/tests/data/test581 new file mode 100644 index 000000000..acaa41b9f --- /dev/null +++ b/tests/data/test581 @@ -0,0 +1,58 @@ + + + +HTTP +HTTP GET +multi +Duplicate-header + + + +# Server-side + + +HTTP/1.1 200 all good! +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Type: text/html +Content-Length: 0 +Connection: close +Content-Type: changed/my/mind + + + + +# Client-side + + +http + + +http + +# tool is what to use instead of 'curl' + +lib507 + + + +multi interface, multiple Content-Type: headers + + +http://%HOSTIP:%HTTPPORT/581 + + + +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /581 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + -- cgit v1.2.3