]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/curl/tests/data/test9
hello world
[icculus/iodoom3.git] / neo / curl / tests / data / test9
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
20  </name>
21  <command>
22 http://%HOSTIP:%HOSTPORT/we/want/9 -F name=daniel -F tool=curl -F file=@log/test9.txt
23 </command>
24 # We create this file before the command is invoked!
25 <file name="log/test9.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/9 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: 411
44 Expect: 100-continue
45 Content-Type: multipart/form-data; boundary=----------------------------9ef8d6205763
46
47 ------------------------------9ef8d6205763
48 Content-Disposition: form-data; name="name"
49
50 daniel
51 ------------------------------9ef8d6205763
52 Content-Disposition: form-data; name="tool"
53
54 curl
55 ------------------------------9ef8d6205763
56 Content-Disposition: form-data; name="file"; filename="log/test9.txt"
57 Content-Type: text/plain
58
59 foo-
60 This is a moo-
61 bar
62
63 ------------------------------9ef8d6205763--
64 </protocol>
65 </verify>