Initial commit of visual studio 9 git build superproject.
[git-build-vc9.git] / curl / tests / data / test545
blob66ebb61199e9df182f53441d97a597468ddbbab5
1 <testcase>
3 # Server-side
4 <reply>
5 <data mode="text">
6 HTTP/1.1 200 OK swsclose
7 Date: Thu, 09 Nov 2010 14:49:00 GMT
8 Server: test-server/fake
9 Content-Length: 3
12 </data>
13 </reply>
15 # Client-side
16 <client>
17 <server>
18 http
19 </server>
20 # tool is what to use instead of 'curl'
21 <tool>
22 lib545
23 </tool>
25  <name>
26 HTTP POST binary with embedded null using CURLOPT_COPYPOSTFIELDS
27  </name>
28  <command>
29 http://%HOSTIP:%HTTPPORT/545
30 </command>
31 </client>
34 # Verify data after the test has been "shot"
35 <verify>
36 <strip>
37 ^User-Agent:.*
38 </strip>
39 <protocol>
40 POST /545 HTTP/1.1\r
41 Host: %HOSTIP:%HTTPPORT\r
42 Accept: */*\r
43 Content-Length: 52\r
44 Content-Type: application/x-www-form-urlencoded\r
46 This\0 is test binary data with an embedded NUL byte
47 </protocol>
48 </verify>
49 </testcase>