xref: /curl/tests/data/test277 (revision 3fd80c7b)
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: Tue, 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<features>
24Mime
25</features>
26<server>
27http
28</server>
29<name>
30HTTP RFC1867-type formposting with custom Content-Type
31</name>
32<command>
33http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -F name=daniel -H "Content-Type: text/info"
34</command>
35</client>
36
37# Verify data after the test has been "shot"
38<verify>
39<strippart>
40s/^--------------------------[A-Za-z0-9]*/--------------------------/
41s/boundary=------------------------[A-Za-z0-9]*/boundary=------------------------/
42</strippart>
43<protocol>
44POST /want/%TESTNUMBER HTTP/1.1
45Host: %HOSTIP:%HTTPPORT
46User-Agent: curl/%VERSION
47Accept: */*
48Content-Length: 158
49Content-Type: text/info; boundary=------------------------
50
51--------------------------
52Content-Disposition: attachment; name="name"
53
54daniel
55----------------------------
56</protocol>
57</verify>
58</testcase>
59