From e4b733e3f1a771bd1017cdcfb355fcb9caffe646 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 15 Mar 2013 14:18:16 +0100 Subject: 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 --- tests/FILEFORMAT | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/FILEFORMAT') 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. -- cgit v1.2.3