Re: [XHR] Redirects

On 15.09.2010 10:16, Boris Zbarsky wrote:
> On 9/15/10 1:10 AM, Julian Reschke wrote:
>> Yes. However, I was only 50% joking. Are we sure that XHR should behave
>> the same?
>
> Why should it behave differently from every single other HTTP request
> the browser makes? That seems like adding complexity for the sake of
> complexity...

What browsers do today is a bug per spec.

Use cases for XHR are not identical to surfing web pages. There are 
protocols/implementations that expect method names to be preserved for 
301/302 (*), and an XHR2 with sane redirect handling should at least 
make it possible to talk to these servers.

Best regards, Julian

(*) For instance, when Apache/mod_dav 302-redirects a PROPFIND request, 
the expectation *indeed* is that the redirect request is a PROPFIND.

Received on Wednesday, 15 September 2010 08:38:27 UTC