aboutsummaryrefslogtreecommitdiff
path: root/tests/FILEFORMAT
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-03-15 17:28:32 +0100
committerDaniel Stenberg <daniel@haxx.se>2013-03-27 15:30:46 +0100
commit1e29d275c643ef6aab7948f0f55a7a9397e56b42 (patch)
tree84c06b93ee8092deb48da90e1f21e29dc4a1c11d /tests/FILEFORMAT
parent142755fa5cdd2fea72c68663bfefeb9c6ccf5315 (diff)
test1509: verify proxy header response headers count
Modified sws to support and use custom CONNECT responses instead of the previously naive hard-coded version. Made the HTTP test server able to extract test case number from the host name in a CONNECT request by finding the number after the last dot. It makes 'machine.moo.123' use test case 123. Adapted a larger amount of tests to the new <connect> style. Bug: http://curl.haxx.se/bug/view.cgi?id=1204 Reported by: Martin Jansen
Diffstat (limited to 'tests/FILEFORMAT')
-rw-r--r--tests/FILEFORMAT16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/FILEFORMAT b/tests/FILEFORMAT
index 0029a8eec..063925f09 100644
--- a/tests/FILEFORMAT
+++ b/tests/FILEFORMAT
@@ -75,6 +75,11 @@ to complete a transfer. The response to each request is found in its own data
section. Validating the entire negotiation sequence can be done by
specifying a datacheck section.
</dataNUM>
+<connect>
+The connect section is used instead of the 'data' for all CONNECT
+requests. The remainder of the rules for the data section then apply but with
+a connect prefix.
+</connect>
<datacheck [nonewline="yes"]>
if the data is sent but this is what should be checked afterwards. If
'nonewline' is set, we will cut off the trailing newline of this given data
@@ -247,13 +252,10 @@ that is returned. The last slash in the URL must be followed by a number. That
number (N) will be used by the test-server to load test case N and return the
data that is defined within the <reply><data></data></reply> section.
-If a CONNECT is used to the server (to emulate HTTPS etc over proxy), the port
-number given in the CONNECT request will be used to identify which test that
-is being run, if the proxy host name is said to start with 'test'.
-
-If there's no non-zero test number found in the above two places, the HTTP test
-server will use the number following the last dot in the given url so that
-"foo.bar.123" gets treated as test case 123.
+If there's no test number found above, the HTTP test server will use the
+number following the last dot in the given hostname (made so that a CONNECT
+can still pass on test number) so that "foo.bar.123" gets treated as test case
+123.
Set type="perl" to write the test case as a perl script. It implies that
there's no memory debugging and valgrind gets shut off for this test.