2 # Based on tests 186 and 1053
15 Date: Thu, 29 Jul 2008 14:49:00 GMT
16 Server: test-server/fake
29 HTTP RFC1867-type formposting - -F with three files, one with explicit type
32 http://%HOSTIP:%HTTPPORT/we/want/1315 -F name=value -F 'file=@log/test1315.txt,log/test1315.txt;type=magic/content,log/test1315.txt'
34 # We create this file before the command is invoked!
35 <file name="log/test1315.txt">
40 # Verify data after the test has been "shot"
43 (^User-Agent:.*|-----+\w+)
46 POST /we/want/1315 HTTP/1.1
47 User-Agent: curl/7.18.2 (i686-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.7a ipv6 zlib/1.1.4
48 Host: %HOSTIP:%HTTPPORT
51 Content-Type: multipart/form-data; boundary=----------------------------9ef8d6205763
53 ------------------------------9ef8d6205763
54 Content-Disposition: form-data; name="name"
57 ------------------------------9ef8d6205763
58 Content-Disposition: form-data; name="file"
59 Content-Type: multipart/mixed; boundary=----------------------------aaaaaaaaaaaa
61 Content-Disposition: attachment; filename="test1315.txt"
62 Content-Type: text/plain
66 ------------------------------9ef8d6205763
67 Content-Disposition: attachment; filename="test1315.txt"
68 Content-Type: magic/content
72 ------------------------------9ef8d6205763
73 Content-Disposition: attachment; filename="test1315.txt"
74 Content-Type: text/plain
78 ------------------------------aaaaaaaaaaaa--
80 ------------------------------9ef8d6205763--