1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 HTTP proxy 7 IDN 8 FAILURE 9 </keywords> 10 </info> 11 12 # 13 # Server-side 14 <reply> 15 <data> 16 HTTP/1.0 503 Service Unavailable 17 Date: Thu, 09 Nov 2010 14:49:00 GMT 18 Server: test-server/fake swsclose 19 Content-Type: text/html 20 Funny-head: yesyes 21 22 </data> 23 </reply> 24 25 # 26 # Client-side 27 <client> 28 <server> 29 http 30 </server> 31 <features> 32 idn 33 </features> 34 <setenv> 35 CHARSET=UTF-8 36 </setenv> 37 <name> 38 HTTP over proxy with malformatted IDN host name 39 </name> 40 41 # This host name contains an invalid UTF-8 byte sequence that can't be 42 # converted into an IDN name 43 <command> 44 http://invalid-utf8-.local/page/1034 -x %HOSTIP:%HTTPPORT 45 </command> 46 </client> 47 48 # 49 # Verify data after the test has been "shot" 50 <verify> 51 <strip> 52 ^User-Agent:.* 53 </strip> 54 <protocol> 55 GET http://invalid-utf8-.local/page/1034 HTTP/1.1 56 Host: invalid-utf8-.local 57 Accept: */* 58 59 </protocol> 60 </verify> 61 </testcase> 62