12 Date: Thu, 09 Nov 2010 14:49:00 GMT
13 Server: test-server/fake
26 HTTP RFC1867-type formposting with filename= and type=
29 http://%HOSTIP:%HTTPPORT/we/want/39 -F name=daniel -F tool=curl --form-string "str1=@literal" --form-string "str2=<verbatim;type=xxx/yyy" -F "file=@log/test39.txt;type=moo/foobar;filename=fakerfile" -F file2=@log/test39.txt
31 # We create this file before the command is invoked!
32 <file name="log/test39.txt">
40 # Verify data after the test has been "shot"
43 ^(User-Agent:|Content-Type: multipart/form-data;|-------).*
46 POST /we/want/39 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="name"
\r
58 ------------------------------24e78000bd32
\r
59 Content-Disposition: form-data; name="tool"
\r
62 ------------------------------24e78000bd32
\r
63 Content-Disposition: form-data; name="str1"
\r
66 ------------------------------24e78000bd32
\r
67 Content-Disposition: form-data; name="str2"
\r
69 <verbatim;type=xxx/yyy
\r
70 ------------------------------24e78000bd32
\r
71 Content-Disposition: form-data; name="file"; filename="fakerfile"
\r
72 Content-Type: moo/foobar
\r
79 ------------------------------24e78000bd32
\r
80 Content-Disposition: form-data; name="file2"; filename="test39.txt"
\r
81 Content-Type: text/plain
\r
88 ------------------------------24e78000bd32--
\r