aboutsummaryrefslogtreecommitdiff
path: root/tests/FILEFORMAT
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-03-15 14:18:16 +0100
committerDaniel Stenberg <daniel@haxx.se>2013-03-15 14:18:16 +0100
commite4b733e3f1a771bd1017cdcfb355fcb9caffe646 (patch)
tree862fa85997d33e26f9e30b7949cbddfb6ad8f91a /tests/FILEFORMAT
parentb50285d751855440252904c76995b6de193c2dc2 (diff)
HTTP proxy: insert slash in URL if missing
curl has been accepting URLs using slightly wrong syntax for a long time, such as when completely missing as slash "http://example.org" or missing a slash when a query part is given "http://example.org?q=foobar". curl would translate these into a legitimate HTTP request to servers, although as was shown in bug #1206 it was not adjusted properly in the cases where a HTTP proxy was used. Test 1213 and 1214 were added to the test suite to verify this fix. The test HTTP server was adjusted to allow us to specify test number in the host name only without using any slashes in a given URL. Bug: http://curl.haxx.se/bug/view.cgi?id=1206 Reported by: ScottJi
Diffstat (limited to 'tests/FILEFORMAT')
-rw-r--r--tests/FILEFORMAT4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/FILEFORMAT b/tests/FILEFORMAT
index d79cbf76d..96cd5c807 100644
--- a/tests/FILEFORMAT
+++ b/tests/FILEFORMAT
@@ -250,6 +250,10 @@ 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 to 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.
+
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.