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