Re: [XHR] Redirects

On 15.09.2010 10:44, Boris Zbarsky wrote:
> On 9/15/10 1:37 AM, Julian Reschke wrote:
>> What browsers do today is a bug per spec.
>
> Well, yes, but they implemented it that way as a specific workaround for
> broken servers, no?

I'm not sure about that.

>> 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.
>
> OK, I almost buy this argument. I feel that we should require opt-in to
> this behavior difference, though, not do it by default.

Since this is a new feature (giving the caller control over redirects) 
I'd argue that the default should be compliant to the spec, and people 
would have to opt-in to something else. But minimally, the correct 
behavior needs to be available somehow.

Best regards, Julian

Received on Wednesday, 15 September 2010 09:41:28 UTC