]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/curl/tests/data/test44
hello world
[icculus/iodoom3.git] / neo / curl / tests / data / test44
1 # Server-side
2 <reply>
3 <data>
4 HTTP/1.1 200 OK swsclose
5 Date: Thu, 09 Nov 2010 14:49:00 GMT
6 Server: test-server/fake
7
8 blablabla
9
10 </data>
11 </reply>
12
13 # Client-side
14 <client>
15 <server>
16 http
17 </server>
18  <name>
19 HTTP RFC1867-type formposting without Expect: header
20  </name>
21  <command>
22 http://%HOSTIP:%HOSTPORT/we/want/44 -F name=daniel -F tool=curl -F file=@log/test44.txt -H 'Expect:'
23 </command>
24 # We create this file before the command is invoked!
25 <file name="log/test44.txt">
26 foo-
27 This is a moo-
28 bar
29 </file>
30 </test>
31
32 # Verify data after the test has been "shot"
33 <verify>
34 <strip>
35 ^(User-Agent:|Content-Type: multipart/form-data;|------).*
36 </strip>
37 <protocol>
38 POST /we/want/44 HTTP/1.1
39 User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
40 Host: 127.0.0.1:8999
41 Pragma: no-cache
42 Accept: */*
43 Content-Length: 412
44 Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
45
46 ------------------------------7c633d5c27ce
47 Content-Disposition: form-data; name="name"
48
49 daniel
50 ------------------------------7c633d5c27ce
51 Content-Disposition: form-data; name="tool"
52
53 curl
54 ------------------------------7c633d5c27ce
55 Content-Disposition: form-data; name="file"; filename="log/test44.txt"
56 Content-Type: text/plain
57
58 foo-
59 This is a moo-
60 bar
61
62 ------------------------------7c633d5c27ce--
63 </protocol>
64 </verify>