cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: 7.9.4: multipart/form-data (-F) option syntax

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 19 Feb 2002 10:44:55 +0100 (MET)

On Mon, 18 Feb 2002, kromJx wrote:

> It would be nice if one left the ';type=foo' syntax as it is and
> added an extra tag (headers) which works like this:
> curl -F "coolfiles=@fil1.txt;headers=@fil1.hdr"
> where fil1.hdr contains extra headers like
> Content-Type: text/plain; charset=KOI8-R"
> Content-Transfer-Encoding: base64
> X-User-Comment: Please don't use browser specific HTML code

I approve of this idea and it can be implemented using the rather recent
CURLFORM_CONTENTHEADER option as brought to us by Marcus Webster.

Thus, this would be a purely client-side change.

This is also a good opportunity for someone who wants to join the project and
have a go at a first curl source code change. Personally, I'm up to my ears
with work so this doesn't qualify to enter my list of things to do within the
nearest weeks.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-02-19