cURL / Mailing Lists / curl-library / Single Mail


Re: patch for contenttype

From: Daniel Stenberg <>
Date: Thu, 31 Jan 2002 08:20:49 +0100 (MET)

On Tue, 29 Jan 2002, Giaslas Georgios wrote:

> i attach an updated version of curl_easy_getinfo.3 man page.

Thanks a lot. It helps me so much when contributed modified or new
functionality is accompanied with the new docs as well!

Your changes have been committed to CVS.

> > I am considering adding a curl_easy_setopt() option that tells curl to do
> > this "keep the content-type string" operation, and thus not always do it
> > unconditionally. Like how CURLOPT_FILETIME works already.
> This is a good idea, I can do that if you like so.

I've thought some more on this, and yes, I think I want this to be
configurable with a setopt() option.

It makes sense to only waste time and memory if the user actually told the
library to do so. It'll make a good ground for the future, as we will
undoubtably come up with more similar stuff like this. It'll be good if new
featues don't make the old users run slower.

I suggest that we name the *_setopt() options in a uniform manner to make it
more apparent that they ask for informations to be retried later. Possibly in
this style:

 CURLOPT_GET_FILETIME (of course the current name would still be around
                          but new code could use the new name)

Good enough?

    Daniel Stenberg -- curl groks URLs --
Received on 2002-01-31