<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
HTTP
HTTP POST
HTTP MIME POST
MIME
</keywords>
</info>

# Server-side
<reply>
<data crlf="headers">
HTTP/1.1 200 OK swsclose
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 3

OK
</data>
<datacheck crlf="headers">
HTTP/1.1 200 OK swsclose
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 3

OK
</datacheck>
</reply>

# Client-side
<client>
<features>
Mime
</features>
<server>
http
</server>
<tool>
lib%TESTNUMBER
</tool>

<name>
HTTP mime post with binary-encoded huge data contents
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
</command>
</client>

# Verify data after the test has been "shot"
<verify>
<strippart>
s/^--------------------------[A-Za-z0-9]*/------------------------------/
s/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/
</strippart>
<protocol>
POST /%TESTNUMBER HTTP/1.1%CR
Host: %HOSTIP:%HTTPPORT%CR
Accept: */*%CR
Content-Length: 17237%CR
Content-Type: multipart/form-data; boundary=----------------------------%CR
%CR
------------------------------%CR
Content-Disposition: form-data; name="upfile"; filename="myfile.txt"%CR
Content-Type: text/plain%CR
Content-Transfer-Encoding: binary%CR
%CR
[encoded data, 16940 characters]
OPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUV%CR
--------------------------------%CR
</protocol>
</verify>
</testcase>
