From 11a8a25528bebdfd175cf7e3a95d1ab2c41e2d65 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 8 Oct 2008 03:32:10 +0000 Subject: Created test cases 1080 and 1081 to reproduce a problem of CURLINFO_REDIRECT_URL leaking memory and returning incorrect results when two URLs are requested. Reported by vmpdemo in bug #2152270 --- tests/data/test1080 | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 tests/data/test1080 (limited to 'tests/data/test1080') diff --git a/tests/data/test1080 b/tests/data/test1080 new file mode 100644 index 000000000..5879a6f17 --- /dev/null +++ b/tests/data/test1080 @@ -0,0 +1,69 @@ + + + +HTTP +HTTP GET +redirect_url +followlocation +--write-out + + + +# Server-side + + +HTTP/1.1 301 This is a weirdo text message swsclose +Location: data/10800002.txt?coolsite=yes +Content-Length: 62 +Connection: close + +This server reply is for testing a simple Location: following + + + +# Client-side + + +http + + +HTTP Location: on two URLs 'redirect_url' check + + +http://%HOSTIP:%HTTPPORT/we/want/our/1080 http://%HOSTIP:%HTTPPORT/we/want/our/1080 -w '%{redirect_url}\n' + + + +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /we/want/our/1080 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + +GET /we/want/our/1080 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + +HTTP/1.1 301 This is a weirdo text message swsclose +Location: data/10800002.txt?coolsite=yes +Content-Length: 62 +Connection: close + +This server reply is for testing a simple Location: following +http://%HOSTIP:%HTTPPORT/we/want/our/data/10800002.txt?coolsite=yes +HTTP/1.1 301 This is a weirdo text message swsclose +Location: data/10800002.txt?coolsite=yes +Content-Length: 62 +Connection: close + +This server reply is for testing a simple Location: following +http://%HOSTIP:%HTTPPORT/we/want/our/data/10800002.txt?coolsite=yes + + + -- cgit v1.2.3