|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker mailing list Archives
[ curl-Bugs-3048988 ] -F option loses charset from the type={content-type}
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Fri, 20 Aug 2010 22:26:48 +0000
Bugs item #3048988, was opened at 2010-08-20 00:17
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
echo "stuff" | curl -s -F action=update -F 'insert=@-;type=text/rdf+n3;charset="ISO-8859-1"' -F foo=bar (...) http://localhost/do/stuff
The POST content is built with a section for the insert arg like so:
The entity's Content-Type: header is missing the "charset" parameter supplied to the -F argument. It is given the correct MIME type string, just bereft of its parameters. According to the HTTP 1.1 spec, RFC 2616 section 14.17, the media-type value is allowed to contain embedded whitespace as well as a semicolon followed by the character set description, e.g.
Curl should detect a charset parameter if it is present in the "type=" value, and include it in the entity's content-type header in the generated POST multipart document.
This behavior was tested on the current latest curl (7.21.1) as well as 7.19.7 on MacOS X 10.6. -V output is:
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
To try it out, you either checkout/update your git clone:
or you try tomorrow's daily snapshot: http://curl.haxx.se/snapshots/
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info