From 4a091bbd8a30685d4f676a023c0488abb0469d3f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 18 May 2005 20:01:01 +0000 Subject: Bug report #1204435 identified a problem with malformed URLs like "http://somehost?data" as it added a slash too much in the request ("GET /?data/"...). Added test case 260 to verify. --- tests/data/test260 | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 tests/data/test260 (limited to 'tests/data/test260') diff --git a/tests/data/test260 b/tests/data/test260 new file mode 100644 index 000000000..930786435 --- /dev/null +++ b/tests/data/test260 @@ -0,0 +1,53 @@ + + +HTTP +HTTP GET + + + +# +# Server-side + + +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 + + + + + +# +# Client-side + + +http + + +HTTP GET URL without slash but with questionmark + + +"http://%HOSTIP:%HTTPPORT?260" + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /?260 HTTP/1.1 +Host: 127.0.0.1:%HTTPPORT +Accept: */* + + + -- cgit v1.2.3