From 3df8e78860d3a3d3cf95252bd2b4ad5fd53360cd Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 25 Dec 2014 23:51:43 +0100 Subject: tests: make sure CRLFs can't be used in URLs passed to proxy Bug: http://curl.haxx.se/docs/adv_20150108B.html --- tests/data/test1529 | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 tests/data/test1529 (limited to 'tests/data/test1529') diff --git a/tests/data/test1529 b/tests/data/test1529 new file mode 100644 index 000000000..33df26824 --- /dev/null +++ b/tests/data/test1529 @@ -0,0 +1,43 @@ + + + +HTTP +HTTP GET +HTTP proxy + + + +# Server-side + + +HTTP/1.1 200 OK +We-are: good + + + + +# Client-side + + +http +http-proxy + + +lib1529 + + +HTTP request-injection in URL sent over proxy + + + "http://the.old.moo:%HTTPPORT/1529" %HOSTIP:%PROXYPORT + + + +# it should be detected and an error should be reported + +# 3 == CURLE_URL_MALFORMAT + +3 + + + -- cgit v1.2.3