Re: [XHR] Redirects

On Fri, 13 Aug 2010 00:13:16 +0200, Joćo Eiras <joao.eiras@gmail.com>  
wrote:
> Between the boolean and an integer, the integer is more useful, although  
> seeing long redirection chains is somewhat rare and overkill.

I went for a boolean followRedirects attribute as that gives sufficient  
low-level control that people can implement whatever behavior they want on  
top of that. (Including every use case mentioned in this thread.) This is  
an XMLHttpRequest Level 2 feature now:

http://dev.w3.org/2006/webapi/XMLHttpRequest-2/


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Friday, 27 August 2010 12:51:30 UTC