xref: /curl/tests/data/test669 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6HTTP MIME POST
7HTTP FORMPOST
8</keywords>
9</info>
10# Server-side
11<reply>
12<data>
13HTTP/1.0 200 OK swsclose
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15Server: test-server/fake
16
17blablabla
18
19</data>
20</reply>
21
22# Client-side
23<client>
24<features>
25Mime
26</features>
27<server>
28http
29</server>
30<name>
31HTTP custom Content-Type with parameter
32</name>
33<command>
34http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -H 'Content-type: multipart/form-data; charset=utf-8' -F name=daniel -F tool=curl
35</command>
36</client>
37
38# Verify data after the test has been "shot"
39<verify>
40<strippart>
41s/^--------------------------[A-Za-z0-9]*/------------------------------/
42s/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/
43</strippart>
44<protocol>
45POST /we/want/%TESTNUMBER HTTP/1.1
46Host: %HOSTIP:%HTTPPORT
47User-Agent: curl/%VERSION
48Accept: */*
49Content-Length: 260
50Content-Type: multipart/form-data; charset=utf-8; boundary=----------------------------
51
52------------------------------
53Content-Disposition: form-data; name="name"
54
55daniel
56------------------------------
57Content-Disposition: form-data; name="tool"
58
59curl
60--------------------------------
61</protocol>
62</verify>
63</testcase>
64