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