cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: default HTML header Accept: image/...

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 7 Jan 2004 08:12:01 +0100 (CET)

On Tue, 6 Jan 2004, Dan Fandrich wrote:

> > Accept: */*
>
> That sounds like the best default to me. Applications can narrow that
> themselves if they would like. What about leaving out the header
> altogether? Is that allowed, and would that have similar semantics? That
> would shave 12 bytes off every request.

I haven't done any thorough testing, but I am a bit concerned about what some
of the weird servers "out there" will do if we don't provide any Accept:
header at all. The standard sure allows leaving it out, but I think we have a
bigger chance for sensible data returned if we provide one.

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2004-01-07