Home | History | Annotate | Download | only in data
      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP POST
      6 Content-Length
      7 </keywords>
      8 </info>
      9 
     10 # Server-side
     11 <reply>
     12 <data nocheck="yes">
     13 HTTP/1.1 411 Length Required
     14 Date: Sun, 19 Jan 2014 18:50:58 GMT
     15 Server: test-server/fake swsclose
     16 Connection: close
     17 </data>
     18 </reply>
     19 
     20 # Client-side
     21 <client>
     22 <server>
     23 http
     24 </server>
     25 <tool>
     26 lib1514
     27 </tool>
     28 <name>
     29 HTTP POST with read callback and unknown data size
     30 </name>
     31 <command>
     32 http://%HOSTIP:%HTTPPORT/1514
     33 </command>
     34 </client>
     35 
     36 # Verify data after the test has been "shot"
     37 <verify>
     38 # Content-Length header is not present
     39 <protocol>
     40 POST /1514 HTTP/1.1
     41 Host: %HOSTIP:%HTTPPORT
     42 Accept: */*
     43 Content-Type: application/x-www-form-urlencoded
     44 Expect: 100-continue
     45 
     46 </protocol>
     47 </verify>
     48 </testcase>
     49