1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP POST 6HTTP MIME 7</keywords> 8</info> 9 10# 11# Server-side 12<reply> 13<data> 14HTTP/1.1 200 OK swsclose 15Date: Tue, 09 Nov 2010 14:49:00 GMT 16Server: test-server/fake 17Content-Length: 3 18 19OK 20</data> 21<datacheck> 22HTTP/1.1 200 OK swsclose 23Date: Tue, 09 Nov 2010 14:49:00 GMT 24Server: test-server/fake 25Content-Length: 3 26 27OK 28HTTP/1.1 200 OK swsclose 29Date: Tue, 09 Nov 2010 14:49:00 GMT 30Server: test-server/fake 31Content-Length: 3 32 33OK 34</datacheck> 35</reply> 36 37# Client-side 38<client> 39<server> 40http 41</server> 42# tool to invoke 43<tool> 44lib%TESTNUMBER 45</tool> 46 47 <name> 48CURLOPT_MIMEPOST first set then set to NULL 49 </name> 50 <command> 51http://%HOSTIP:%HTTPPORT/%TESTNUMBER 52</command> 53</client> 54 55# 56# Verify data after the test has been "shot" 57<verify> 58<strippart> 59s/^--------------------------[a-z0-9]*/--------------------------/ 60s/boundary=------------------------[a-z0-9]*/boundary=------------------------/ 61</strippart> 62<protocol> 63POST /%TESTNUMBER HTTP/1.1 64Host: %HOSTIP:%HTTPPORT 65Accept: */* 66Content-Length: 144 67Content-Type: multipart/form-data; boundary=------------------------ 68 69-------------------------- 70Content-Disposition: form-data; name="fake" 71 72party 73---------------------------- 74POST /%TESTNUMBER HTTP/1.1 75Host: %HOSTIP:%HTTPPORT 76Accept: */* 77Content-Length: 0 78 79</protocol> 80</verify> 81</testcase> 82