1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP POST 6MIME 7</keywords> 8</info> 9 10# 11# Server-side 12<reply> 13<data> 14HTTP/1.1 200 OK 15Date: Thu, 09 Nov 2010 14:49:00 GMT 16Server: test-server/fake swsclose 17Connection: close 18Content-Type: text/html 19 20hello 21</data> 22<datacheck> 23HTTP/1.1 200 OK 24Date: Thu, 09 Nov 2010 14:49:00 GMT 25Server: test-server/fake swsclose 26Connection: close 27Content-Type: text/html 28 29hello 30</datacheck> 31</reply> 32 33# Client-side 34<client> 35<server> 36http 37</server> 38# tool is what to use instead of 'curl' 39<tool> 40lib671 41</tool> 42 43 <name> 44Request pause from mime read callback: easy 45 </name> 46 <command> 47http://%HOSTIP:%HTTPPORT/671 48</command> 49</client> 50 51# 52# Verify data after the test has been "shot" 53<verify> 54<strippart> 55s/^--------------------------[a-z0-9]*/------------------------------/ 56s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/ 57</strippart> 58<protocol> 59POST /671 HTTP/1.1 60Host: %HOSTIP:%HTTPPORT 61Accept: */* 62Content-Length: 142 63Content-Type: multipart/form-data; boundary=---------------------------- 64 65------------------------------ 66Content-Disposition: form-data; name="field" 67 68AB 69-------------------------------- 70</protocol> 71</verify> 72</testcase> 73