tizen 2.3.1 release
[external/curl.git] / tests / data / test158
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP POST
6 </keywords>
7 </info>
8
9 # Server-side
10 <reply>
11 <data>
12 HTTP/1.1 100 Continue swsclose\r
13 Silly-header: yeeeees\r
14 \r
15 </data>
16 </reply>
17
18 # Client-side
19 <client>
20 <server>
21 http
22 </server>
23  <name>
24 HTTP multipart formpost with only a 100 reply
25  </name>
26  <command>
27 http://%HOSTIP:%HTTPPORT/158 -F name=daniel
28 </command>
29 </client>
30
31 # Verify data after the test has been "shot"
32 <verify>
33 <strip>
34 ^User-Agent:.*
35 ^Content-Type: multipart/form-data.*
36 ^-----------------------.*
37 </strip>
38 <protocol>
39 POST /158 HTTP/1.1\r
40 User-Agent: curl/7.11.2-CVS (i686-pc-linux-gnu) libcurl/7.11.2-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS\r
41 Host: %HOSTIP:%HTTPPORT\r
42 Accept: */*\r
43 Content-Length: 145\r
44 Expect: 100-continue\r
45 Content-Type: multipart/form-data; boundary=----------------------------4f12fcdaa3bc\r
46 \r
47 ------------------------------4f12fcdaa3bc\r
48 Content-Disposition: form-data; name="name"\r
49 \r
50 daniel\r
51 ------------------------------4f12fcdaa3bc--\r
52 </protocol>
53 <errorcode>
54 52
55 </errorcode>
56 </verify>
57 </testcase>