diff options
author | Patrick Monnerat <patrick@monnerat.net> | 2017-09-03 14:45:43 +0100 |
---|---|---|
committer | Patrick Monnerat <patrick@monnerat.net> | 2017-09-03 14:45:43 +0100 |
commit | 1a3f4c19919b09ff0fd0ba228b06a217d85d4265 (patch) | |
tree | 12c70f11b95ded1acfac5b28eeb7499d0ec99e59 /tests/data/test173 | |
parent | 045b076ae8362006f6977a80e6a5e3ef0eb903eb (diff) |
mime: remove support "-" stdin pseudo-file name in curl_mime_filedata().
This feature is badly supported in Windows: as a replacement, a caller has
to use curl_mime_data_cb() with fread, fseek and possibly fclose
callbacks to process opened files.
The cli tool and documentation are updated accordingly.
The feature is however kept internally for form API compatibility, with
the known caveats it always had.
As a side effect, stdin size is not determined by the cli tool even if
possible and this results in a chunked transfer encoding. Test 173 is
updated accordingly.
Diffstat (limited to 'tests/data/test173')
-rw-r--r-- | tests/data/test173 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/data/test173 b/tests/data/test173 index 865ef7ba2..754950105 100644 --- a/tests/data/test173 +++ b/tests/data/test173 @@ -53,9 +53,11 @@ POST /we/want/173 HTTP/1.1 User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6
Host: %HOSTIP:%HTTPPORT
Accept: */*
-Content-Length: 360
+Transfer-Encoding: chunked
+Expect: 100-continue
Content-Type: multipart/form-data; boundary=----------------------------5dbea401cd8c
+168
------------------------------5dbea401cd8c
Content-Disposition: form-data; name="field1"
@@ -74,6 +76,9 @@ line7 line8 ------------------------------5dbea401cd8c--
+
+0
+
</protocol> </verify> </testcase> |