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