1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP FORMPOST
6</keywords>
7</info>
8# Server-side
9<reply>
10<data>
11HTTP/1.1 200 OK swsclose
12Date: Thu, 09 Nov 2010 14:49:00 GMT
13Server: test-server/fake
14Content-Length: 11
15
16blablabla
17
18</data>
19</reply>
20
21# Client-side
22<client>
23<server>
24http
25</server>
26 <name>
27HTTP RFC1867-type formposting with custom Content-Type
28 </name>
29 <command>
30http://%HOSTIP:%HTTPPORT/want/277 -F name=daniel -H "Content-Type: text/info"
31</command>
32</client>
33
34# Verify data after the test has been "shot"
35<verify>
36<strippart>
37s/^--------------------------[a-z0-9]*/--------------------------/
38s/boundary=------------------------[a-z0-9]*/boundary=------------------------/
39</strippart>
40<protocol>
41POST /want/277 HTTP/1.1
42Host: %HOSTIP:%HTTPPORT
43User-Agent: curl/%VERSION
44Accept: */*
45Content-Length: 146
46Content-Type: text/info; boundary=------------------------
47
48--------------------------
49Content-Disposition: attachment; name="name"
50
51daniel
52----------------------------
53</protocol>
54</verify>
55</testcase>
56