Home | History | Annotate | Download | only in data
      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 --write-out
      7 </keywords>
      8 </info>
      9 
     10 # Server-side
     11 <reply>
     12 <data nocheck="yes">
     13 HTTP/1.1 200 OK swsclose
     14 Funny-head: yesyes
     15 Content-Type: text/html; charset=ISO-8859-4   
     16 
     17 </data>
     18 </reply>
     19 
     20 # Client-side
     21 <client>
     22 <server>
     23 http
     24 </server>
     25  <name>
     26 HTTP content-type with spaces in
     27  </name>
     28  <command>
     29 -w "%{content_type}\n" http://%HOSTIP:%HTTPPORT/57 -o log/out57
     30 </command>
     31 </client>
     32 
     33 # Verify data after the test has been "shot"
     34 <verify>
     35 <stdout mode="text">
     36 text/html; charset=ISO-8859-4
     37 </stdout>
     38 <strip>
     39 ^User-Agent:.*
     40 </strip>
     41 <protocol>
     42 GET /57 HTTP/1.1
     43 Host: %HOSTIP:%HTTPPORT
     44 Accept: */*
     45 
     46 </protocol>
     47 </verify>
     48 </testcase>
     49