W3C home > Mailing lists > Public > public-webapi@w3.org > July 2006

Re: About XMLHttpRequest Draft

From: Mark Nottingham <mnot@yahoo-inc.com>
Date: Tue, 18 Jul 2006 10:54:13 -0700
Message-Id: <4FB736E4-4368-470B-B185-E5AE55EDC8FE@yahoo-inc.com>
Cc: public-webapi@w3.org
To: "Óscar Toledo G." <uno@biyubi.com>

On 2006/07/17, at 5:14 PM, Óscar Toledo G. wrote:

> After reading the draft, appears as setRequestHeader mustignore  
> Content-MD5, User-Agent and From headers, as Content-MD5 can be  
> only calculated after the send methodhas generated the data, and  
> User-Agent and From are generally provided by the UA.

Content-MD5 is not set by most UAs, and so it's useful for the author  
to set it manually. While it may be difficult to calculate (esp. if  
the content is a DOMString), it's certainly possible.

Likewise, From is not normally set by UAs automatically, and it might  
be useful in some contexts.

I can easily see a case where a library or other XHR application  
might want to append something to the UA header.


Mark Nottingham
Received on Tuesday, 18 July 2006 17:54:42 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:21 UTC