Imported Upstream version 7.44.0
[platform/upstream/curl.git] / tests / data / test1531
1 <testcase>
2 <info>
3 <keywords>
4 CURLOPT_POSTFIELDS
5 </keywords>
6 </info>
7
8 <client>
9 <server>
10 http
11 </server>
12 <features>
13 http
14 </features>
15 <tool>
16 lib1531
17 </tool>
18  <name>
19 CURLOPT_POSTFIELDS with binary data set after multi_add_handle
20  </name>
21 <command>
22 %HOSTIP:%HTTPPORT/1531
23 </command>
24 </client>
25
26 # it should be detected and an error should be reported
27 <verify>
28 <protocol nonewline="yes">
29 POST /1531 HTTP/1.1\r
30 Host: %HOSTIP:%HTTPPORT\r
31 Accept: */*\r
32 Content-Length: 8\r
33 Content-Type: application/x-www-form-urlencoded\r
34 \r
35 .abc\0xyz
36 </protocol>
37 </verify>
38 </testcase>