12 Date: Thu, 09 Nov 2010 14:49:00 GMT
\r
13 Server: test-server/fake
\r
26 HTTP RFC1867-type formposting with filename contains ',', ';', '"'
29 http://%HOSTIP:%HTTPPORT/we/want/1133 -F "file=@\"log/test1133,a\\\"nd;.txt\";type=mo/foo;filename=\"faker,and;.txt\"" -F 'file2=@"log/test1133,a\"nd;.txt"' -F 'file3=@"log/test1133,a\"nd;.txt";type=m/f,"log/test1133,a\"nd;.txt"'
31 # We create this file before the command is invoked!
32 <file name=log/test1133,a"nd;.txt>
40 # Verify data after the test has been "shot"
43 ^(User-Agent:|Content-Type: multipart/form-data;|Content-Type: multipart/mixed, boundary=|-------).*
46 POST /we/want/1133 HTTP/1.1
\r
47 User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
\r
48 Host: %HOSTIP:%HTTPPORT
\r
51 Expect: 100-continue
\r
52 Content-Type: multipart/form-data; boundary=----------------------------24e78000bd32
\r
54 ------------------------------24e78000bd32
\r
55 Content-Disposition: form-data; name="file"; filename="faker,and;.txt"
\r
56 Content-Type: mo/foo
\r
63 ------------------------------24e78000bd32
\r
64 Content-Disposition: form-data; name="file2"; filename="test1133,a\"nd;.txt"
\r
65 Content-Type: text/plain
\r
72 ------------------------------24e78000bd32
\r
73 Content-Disposition: form-data; name="file3"
\r
74 Content-Type: multipart/mixed, boundary=----------------------------7f0e85a48b0b
\r
76 Content-Disposition: attachment; filename="test1133,a\"nd;.txt"
\r
84 Content-Disposition: attachment; filename="test1133,a\"nd;.txt"
\r
85 Content-Type: text/plain
\r
92 ------------------------------24e78000bd32--
\r