cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Storing the URL in extended attributes of the downloaded file

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 18 Oct 2010 13:14:03 -0700

On Mon, Oct 18, 2010 at 12:49:32PM +0200, Stefan Tomanek wrote:
> I made some more changes to my git branch; so now the option is called
> --xattr and can set a variety of attributes. I added a table to xattr.c
> mapping CURLINFO constants to xattr-names, for now the url of origin as
> well as the mime type is stored, but it can be extended easily:

I can see how the user.xdg.publisher attribute could be useful (hard-coded
to "curl"), as could the user.xdg.language and user.charset attributes,
which can come from HTTP headers. The latter two would be trickier to add
though, since curl doesn't already parse the required headers.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-10-18