From 2f8085af15468741266e162af15804061d960d85 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 12 Mar 2005 19:39:27 +0000 Subject: David Houlder added --form-string --- tests/data/test39 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'tests/data') diff --git a/tests/data/test39 b/tests/data/test39 index 29f6cc398..7c0028762 100644 --- a/tests/data/test39 +++ b/tests/data/test39 @@ -19,7 +19,7 @@ http HTTP RFC1867-type formposting with filename= and type= -http://%HOSTIP:%HTTPPORT/we/want/39 -F name=daniel -F tool=curl -F "file=@log/test39.txt;filename=fakerfile;type=moo/foobar" -F file2=@log/test39.txt +http://%HOSTIP:%HTTPPORT/we/want/39 -F name=daniel -F tool=curl --form-string "str1=@literal" --form-string "str2= # We create this file before the command is invoked! @@ -41,7 +41,7 @@ User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 z Host: 127.0.0.1:%HTTPPORT Pragma: no-cache Accept: */* -Content-Length: 594 +Content-Length: 810 Expect: 100-continue Content-Type: multipart/form-data; boundary=----------------------------24e78000bd32 @@ -54,6 +54,14 @@ Content-Disposition: form-data; name="tool" curl ------------------------------24e78000bd32 +Content-Disposition: form-data; name="str1" + +@literal +------------------------------24e78000bd32 +Content-Disposition: form-data; name="str2" + +