1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP POST 6</keywords> 7</info> 8 9# 10# Server-side 11<reply> 12<data> 13HTTP/1.1 200 OK 14Date: Thu, 09 Nov 2010 14:49:00 GMT 15Server: test-server/fake swsclose 16Connection: close 17Content-Type: text/html 18 19hello 20</data> 21</reply> 22 23# Client-side 24<client> 25<server> 26http 27</server> 28# tool is what to use instead of 'curl' 29<tool> 30lib510 31</tool> 32 33 <name> 34send HTTP POST using read callback, using chunked transfer-encoding 35 </name> 36 <command> 37http://%HOSTIP:%HTTPPORT/510 38</command> 39</client> 40 41# 42# Verify data after the test has been "shot" 43<verify> 44<protocol> 45POST /510 HTTP/1.1 46Host: %HOSTIP:%HTTPPORT 47Accept: */* 48Transfer-Encoding: chunked 49Content-Type: application/x-www-form-urlencoded 50Expect: 100-continue 51 523 53one 543 55two 565 57three 581d 59and a final longer crap: four 600 61 62</protocol> 63</verify> 64</testcase> 65