From d9b4d1ce20e89a00dba8afc3767845fb7e357b21 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Thu, 7 Jan 2016 18:00:00 +0100 Subject: connection reuse: IDN host names fixed Use the ACE form of IDN hostnames as key in the connection cache. Add new tests. Closes #592 --- tests/data/test2047 | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 tests/data/test2047 (limited to 'tests/data/test2047') diff --git a/tests/data/test2047 b/tests/data/test2047 new file mode 100644 index 000000000..442297801 --- /dev/null +++ b/tests/data/test2047 @@ -0,0 +1,97 @@ + + + +HTTP +HTTP GET +HTTP proxy +IDN +followlocation +--write-out + + + +# +# Server-side + + +HTTP/1.1 302 OK swsbounce +Date: Thu, 09 Nov 2010 14:49:00 GMT +Content-Length: 9 +Content-Type: text/plain +Location: ./20470001 + +redirect + + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Content-Length: 3 +Content-Type: text/plain; charset=us-ascii + +OK + + + +# +# Client-side + + +http + + +idn + + +CHARSET=UTF-8 + + +Connection re-use with IDN host name over HTTP proxy + + + +http://åäö.se/2047 -x %HOSTIP:%HTTPPORT -w "%{num_connects}\n%{num_redirects}\n%{size_download}\n%{url_effective}\n%{content_type}\n%{response_code}\n" -L + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET http://xn--4cab6c.se/2047 HTTP/1.1 +Host: xn--4cab6c.se +Accept: */* +Proxy-Connection: Keep-Alive + +GET http://xn--4cab6c.se/20470001 HTTP/1.1 +Host: xn--4cab6c.se +Accept: */* +Proxy-Connection: Keep-Alive + + + + +HTTP/1.1 302 OK swsbounce +Date: Thu, 09 Nov 2010 14:49:00 GMT +Content-Length: 9 +Content-Type: text/plain +Location: ./20470001 + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Content-Length: 3 +Content-Type: text/plain; charset=us-ascii + +OK +1 +1 +3 +http://xn--4cab6c.se/20470001 +text/plain; charset=us-ascii +200 + + + + -- cgit v1.2.3