Imported Upstream version 7.59.0
[platform/upstream/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
13 Silly-header: yeeeees
14
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
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
41 Host: %HOSTIP:%HTTPPORT
42 Accept: */*
43 Content-Length: 145
44 Content-Type: multipart/form-data; boundary=----------------------------4f12fcdaa3bc
45
46 ------------------------------4f12fcdaa3bc
47 Content-Disposition: form-data; name="name"
48
49 daniel
50 ------------------------------4f12fcdaa3bc--
51 </protocol>
52 <errorcode>
53 52
54 </errorcode>
55 </verify>
56 </testcase>