12 Date: Thu, 09 Nov 2010 14:49:00 GMT
13 Server: test-server/fake
26 HTTP RFC1867-type formposting with filename/data 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"' -F a="{\"field1\":\"value1\",\"field2\":\"value2\"}" -F 'b=" \\value1;type=\"whatever\" "; type=text/foo; charset=utf-8 ; filename=param_b'
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
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
52 Content-Type: multipart/form-data; boundary=----------------------------24e78000bd32
54 ------------------------------24e78000bd32
55 Content-Disposition: form-data; name="file"; filename="faker,and;.txt"
63 ------------------------------24e78000bd32
64 Content-Disposition: form-data; name="file2"; filename="test1133,a\"nd;.txt"
65 Content-Type: text/plain
72 ------------------------------24e78000bd32
73 Content-Disposition: form-data; name="file3"
74 Content-Type: multipart/mixed; boundary=----------------------------7f0e85a48b0b
76 Content-Disposition: attachment; filename="test1133,a\"nd;.txt"
84 Content-Disposition: attachment; filename="test1133,a\"nd;.txt"
85 Content-Type: text/plain
93 Content-Disposition: form-data; name="a"
95 {"field1":"value1","field2":"value2"}
96 Content-Disposition: form-data; name="b"; filename="param_b"
97 Content-Type: text/foo; charset=utf-8
99 \value1;type="whatever"
100 ------------------------------24e78000bd32--