summaryrefslogtreecommitdiff
path: root/tests/data/test39
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-03-12 19:39:27 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-03-12 19:39:27 +0000
commit2f8085af15468741266e162af15804061d960d85 (patch)
treeb31711b430446587b5a13905fefed62d801086d9 /tests/data/test39
parent88a4dc27954a56bca826085d57df0603c055d4cf (diff)
downloadcurl-2f8085af15468741266e162af15804061d960d85.tar.gz
David Houlder added --form-string
Diffstat (limited to 'tests/data/test39')
-rw-r--r--tests/data/test3912
1 files changed, 10 insertions, 2 deletions
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=
</name>
<command>
-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=<verbatim;type=xxx/yyy" -F "file=@log/test39.txt;filename=fakerfile;type=moo/foobar" -F file2=@log/test39.txt
</command>
# We create this file before the command is invoked!
<file name="log/test39.txt">
@@ -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"
+
+<verbatim;type=xxx/yyy
+------------------------------24e78000bd32
Content-Disposition: form-data; name="file"; filename="fakerfile"
Content-Type: moo/foobar