Home | History | Annotate | Download | only in data
      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 chunked Transfer-Encoding
      7 </keywords>
      8 </info>
      9 #
     10 # Server-side
     11 <reply>
     12 <data>
     13 HTTP/1.1 200 funky chunky!
     14 Server: fakeit/0.9 fakeitbad/1.0
     15 Transfer-Encoding: chunked
     16 Trailer: chunky-trailer
     17 Connection: mooo
     18 
     19 40
     20 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
     21 30
     22 bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
     23 21;heresatest=moooo
     24 cccccccccccccccccccccccccccccccc
     25 
     26 0
     27 chunky-trailer: header data
     28 
     29 </data>
     30 <datacheck>
     31 HTTP/1.1 200 funky chunky!
     32 Server: fakeit/0.9 fakeitbad/1.0
     33 Transfer-Encoding: chunked
     34 Trailer: chunky-trailer
     35 Connection: mooo
     36 
     37 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccc
     38 </datacheck>
     39 </reply>
     40 
     41 #
     42 # Client-side
     43 <client>
     44 <server>
     45 http
     46 </server>
     47  <name>
     48 HTTP GET with chunked encoding and chunked trailer without CRs
     49  </name>
     50  <command>
     51 http://%HOSTIP:%HTTPPORT/1417 -D log/heads1417
     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 /1417 HTTP/1.1
     63 Host: %HOSTIP:%HTTPPORT
     64 Accept: */*
     65 
     66 </protocol>
     67 <file name="log/heads1417">
     68 HTTP/1.1 200 funky chunky!
     69 Server: fakeit/0.9 fakeitbad/1.0
     70 Transfer-Encoding: chunked
     71 Trailer: chunky-trailer
     72 Connection: mooo
     73 
     74 chunky-trailer: header data
     75 </file>
     76 </verify>
     77 
     78 </testcase>
     79