Home | History | Annotate | Download | only in data
      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP proxy
      7 IDN
      8 followlocation
      9 --write-out
     10 </keywords>
     11 </info>
     12 
     13 #
     14 # Server-side
     15 <reply>
     16 <data nocheck="yes">
     17 HTTP/1.1 302 OK swsbounce
     18 Date: Thu, 09 Nov 2010 14:49:00 GMT
     19 Content-Length: 9
     20 Content-Type: text/plain
     21 Location: ./20470001
     22 
     23 redirect
     24 </data>
     25 <data1 nocheck="yes">
     26 HTTP/1.1 200 OK
     27 Date: Thu, 09 Nov 2010 14:49:00 GMT
     28 Content-Length: 3
     29 Content-Type: text/plain; charset=us-ascii
     30 
     31 OK
     32 </data1>
     33 </reply>
     34 
     35 #
     36 # Client-side
     37 <client>
     38 <server>
     39 http
     40 </server>
     41 <features>
     42 idn
     43 </features>
     44 <setenv>
     45 CHARSET=UTF-8
     46 </setenv>
     47  <name>
     48 Connection re-use with IDN host name over HTTP proxy
     49  </name>
     50 
     51  <command>
     52 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
     53 </command>
     54 </client>
     55 
     56 #
     57 # Verify data after the test has been "shot"
     58 <verify>
     59 <strip>
     60 ^User-Agent:.*
     61 </strip>
     62 <protocol>
     63 GET http://xn--4cab6c.se/2047 HTTP/1.1
     64 Host: xn--4cab6c.se
     65 Accept: */*
     66 Proxy-Connection: Keep-Alive
     67 
     68 GET http://xn--4cab6c.se/20470001 HTTP/1.1
     69 Host: xn--4cab6c.se
     70 Accept: */*
     71 Proxy-Connection: Keep-Alive
     72 
     73 </protocol>
     74 
     75 <stdout>
     76 HTTP/1.1 302 OK swsbounce
     77 Date: Thu, 09 Nov 2010 14:49:00 GMT
     78 Content-Length: 9
     79 Content-Type: text/plain
     80 Location: ./20470001
     81 
     82 HTTP/1.1 200 OK
     83 Date: Thu, 09 Nov 2010 14:49:00 GMT
     84 Content-Length: 3
     85 Content-Type: text/plain; charset=us-ascii
     86 
     87 OK
     88 1
     89 1
     90 3
     91 http://xn--4cab6c.se/20470001
     92 text/plain; charset=us-ascii
     93 200
     94 </stdout>
     95 
     96 </verify>
     97 </testcase>
     98