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<features> 40Mime 41</features> 42<server> 43http 44</server> 45# tool to invoke 46<tool> 47lib%TESTNUMBER 48</tool> 49 50<name> 51CURLOPT_MIMEPOST first set then set to NULL 52</name> 53<command> 54http://%HOSTIP:%HTTPPORT/%TESTNUMBER 55</command> 56</client> 57 58# 59# Verify data after the test has been "shot" 60<verify> 61<strippart> 62s/^--------------------------[A-Za-z0-9]*/--------------------------/ 63s/boundary=------------------------[A-Za-z0-9]*/boundary=------------------------/ 64</strippart> 65<protocol> 66POST /%TESTNUMBER HTTP/1.1 67Host: %HOSTIP:%HTTPPORT 68Accept: */* 69Content-Length: 156 70Content-Type: multipart/form-data; boundary=------------------------ 71 72-------------------------- 73Content-Disposition: form-data; name="fake" 74 75party 76---------------------------- 77POST /%TESTNUMBER HTTP/1.1 78Host: %HOSTIP:%HTTPPORT 79Accept: */* 80Content-Length: 0 81 82</protocol> 83</verify> 84</testcase> 85