From 9bd03483ce6983852d41f5f69cb74827c9defc26 Mon Sep 17 00:00:00 2001 From: Claes Jakobsson Date: Wed, 6 Jan 2010 16:01:48 +0000 Subject: Julien Chaffraix fixed so that the fragment part in an URL is not sent to the server anymore --- tests/data/test1109 | 46 ++++++++++++++++++++++++++++++++++++++++++++++ tests/data/test1110 | 46 ++++++++++++++++++++++++++++++++++++++++++++++ tests/data/test1111 | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 138 insertions(+) create mode 100644 tests/data/test1109 create mode 100644 tests/data/test1110 create mode 100644 tests/data/test1111 (limited to 'tests') diff --git a/tests/data/test1109 b/tests/data/test1109 new file mode 100644 index 000000000..fc7fc225f --- /dev/null +++ b/tests/data/test1109 @@ -0,0 +1,46 @@ + +# Test that the fragment is not send as part of the path. + + +HTTP +CURLOPT_URL + + + +# Server-side + + +HTTP/1.1 200 OK +Content-Length: 6 + +hello + + + +# Client-side + + +http + + +HTTP GET + + +http://%HOSTIP:%HTTPPORT/1109#test + + + + +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1109 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + diff --git a/tests/data/test1110 b/tests/data/test1110 new file mode 100644 index 000000000..0597d3ccf --- /dev/null +++ b/tests/data/test1110 @@ -0,0 +1,46 @@ + +# Test that the fragment is not send as part of the path when the path contains a query. + + +HTTP +CURLOPT_URL + + + +# Server-side + + +HTTP/1.1 200 OK +Content-Length: 6 + +hello + + + +# Client-side + + +http + + +HTTP GET + + +http://%HOSTIP:%HTTPPORT/1110?q=foobar#fragment + + + + +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1110?q=foobar HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + diff --git a/tests/data/test1111 b/tests/data/test1111 new file mode 100644 index 000000000..0f8e0563c --- /dev/null +++ b/tests/data/test1111 @@ -0,0 +1,46 @@ + +# Test that no fragment is not send as part of the path when the URI contains 2 '#' (does not follow RFC 2396) + + +HTTP +CURLOPT_URL + + + +# Server-side + + +HTTP/1.1 200 OK +Content-Length: 6 + +hello + + + +# Client-side + + +http + + +HTTP GET + + +http://%HOSTIP:%HTTPPORT/1111?q=foobar#fragment#fragment2 + + + + +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1111?q=foobar HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + -- cgit v1.2.3