Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test44
blob11ae480bd26e5c058e1ad66520d00bf3beb1af8f
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP FORMPOST
6 HTTP replaced headers
7 </keywords>
8 </info>
9 # Server-side
10 <reply>
11 <data>
12 HTTP/1.0 200 OK swsclose
13 Date: Thu, 09 Nov 2010 14:49:00 GMT
14 Server: test-server/fake
16 blablabla
18 </data>
19 </reply>
21 # Client-side
22 <client>
23 <server>
24 http
25 </server>
26  <name>
27 HTTP RFC1867-type formposting without Expect: header
28  </name>
29  <command>
30 http://%HOSTIP:%HTTPPORT/we/want/44 -F name=daniel -F tool=curl -F file=@log/test44.txt -H "Expect:"
31 </command>
32 # We create this file before the command is invoked!
33 <file name="log/test44.txt">
34 foo-
35 This is a moo-
36 bar
37 </file>
38 </client>
40 # Verify data after the test has been "shot"
41 <verify>
42 <strip>
43 ^(User-Agent:|Content-Type: multipart/form-data;|------).*
44 </strip>
45 <protocol>
46 POST /we/want/44 HTTP/1.1
47 User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
48 Host: %HOSTIP:%HTTPPORT
49 Accept: */*
50 Content-Length: 408
51 Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
53 ------------------------------7c633d5c27ce
54 Content-Disposition: form-data; name="name"
56 daniel
57 ------------------------------7c633d5c27ce
58 Content-Disposition: form-data; name="tool"
60 curl
61 ------------------------------7c633d5c27ce
62 Content-Disposition: form-data; name="file"; filename="test44.txt"
63 Content-Type: text/plain
65 foo-
66 This is a moo-
67 bar
69 ------------------------------7c633d5c27ce--
70 </protocol>
71 </verify>
72 </testcase>