W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2004

[whatwg] XMLHttpRequest

From: Joe Gregorio <joe.gregorio@gmail.com>
Date: Wed, 1 Dec 2004 23:07:47 -0500
Message-ID: <3f1451f5041201200710ba431c@mail.gmail.com>
On Fri, 26 Nov 2004 02:52:28 +0000 (UTC), Ian Hickson <ian at hixie.ch> wrote:
> I have attempted to answer this question at:
> 
>    http://whatwg.org/specs/web-apps/current-work/#setrequestheader
> 
> Let me know if the new text is satisfactory. (In short, it depends based
> on which header the author tries to override.)

This looks good. I do have three observations:

1.) One of the things that doesn't seem clear is the 'everything is
append by comma rule'. I think the intention is that the rule only
applies to the headers that aren't covered in the exceptions section,
but I can't be sure from the wording.

For example, if User-Agent: is allowed to be appended to, shouldn't
that be an exception to the 'everything is appended with a comma'
rule, given the formatting rules for the User-Agent header require it
to be space separated. Same idea for Cookie headers using ';' as a
seperator.

2.) Does the fourth bullet, with it's restriction on the
If-Modified-Since, If-None-Match, If-Range, and Range headers, only
apply if the method is 'GET" or 'HEAD'? I would hope they could be
overridden if the method were PUT, POST, DELETE, etc.

3.) What is the reasoning for restricting the Range header even in the
case of a GET/HEAD? I am in particular thinking of cases where the
units of Range are not 'bytes' but some custom value.

    Thanks,
    -joe

-- 
Joe Gregorio        http://bitworking.org
Received on Wednesday, 1 December 2004 20:07:47 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:38 UTC