aboutsummaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-08-08 10:21:03 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-08-08 18:45:03 +0200
commit45d883d88df76af778ce7024912d3fdd08d13859 (patch)
treedef58058c522f91a0d8c6f97a66eae0cf4aa3430 /tests/data
parent3ef6418b611298ec748fe245eb082b8f33318aba (diff)
CURLFORM_BUFFER: insert filename as documented
A regression where CURLFORM_BUFFER stopped to properly insert the file name part in the formpart. Bug introduced in commit f851f768578dc096. Added CURLFORM_BUFFER use to test 554 to verify this. Bug: http://curl.haxx.se/mail/lib-2011-07/0176.html Reported by: Henry Ludemann
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/test5547
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/data/test554 b/tests/data/test554
index 7fdc353fc..9d9bbcca7 100644
--- a/tests/data/test554
+++ b/tests/data/test554
@@ -45,7 +45,7 @@ s/boundary=----------------------------[a-z0-9]*/boundary=----------------------
POST /554 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*
-Content-Length: 561
+Content-Length: 732
Expect: 100-continue
Content-Type: multipart/form-data; boundary=----------------------------
@@ -67,6 +67,11 @@ postit2.c
Content-Disposition: form-data; name="submit"
send
+------------------------------
+Content-Disposition: form-data; name="somename"; filename="somefile.txt"
+Content-Type: application/octet-stream
+
+blah blah
--------------------------------
</protocol>
</verify>