...
>> An example of this can found at the site of the New York Times.
>> For instance, if you try to view the article with the URL
>> http://www.nytimes.com/2001/12/20/science/20QUAN.html, you get a response
>> that redirects you to
>> 
>http://www.nytimes.com/auth/login?URI=http://www.nytimes.com/2001/12/20/science/20QUAN.html,
>> which automatically authenticates you if have the appropriate cookies set.
>> The last page then redirects you back to
>> http://www.nytimes.com/2001/12/20/science/20QUAN.html.
>> The trouble begins if WWWOFFLE instead of refetching the first URL, gives
>> the browser the cached version which is a redirection. In this case you get
>> caught in an endless loop of redirections.
...
>> Paul Rombouts
>
>
> Same problem here, with the same site. Haven't found the correct solution.
> I've examined the code of this page. It has a specific http reply, 300 or
> 303 IIRC. It would be a great improvement if wwwoffle authorized filtering
> on HTTP "status" (404...).
> 
> My personal fix is to open a new browser view the listing of this site, and
> delete the redirect page.
> It's only once in 24 or 48h.
> 
> Marc

Hi,

I've made a small extension to the WWWOFFLE source code that solves my
particular problem with redirections. I've added an option I called
"request-redirection" to the "OnlineOptions" section of the configuration file.

The syntax for this option is: [<URL-SPEC>] request-redirection = yes | no.
Setting "request-redirection = yes" makes WWWOFFLE more compliant with RFC 2616
(see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3) regarding
redirections.
To be more precise: when WWWOFFLE is online and "request-redirection = yes" and
the status code of the cached version is 302, 303 or 307, the page is requested
again unless the cached version states explicitly that is has not expired.

Fortunately, because the WWWOFFLE source is very nicely structured (well most of
it is anyway :-) ), I found making this change remarkably easy.
Hopefully we can convince AMB to include this option or something similar in
future releases of WWWOFFLE.

Best wishes,

Paul A. Rombouts <[EMAIL PROTECTED]>
Vincent van Goghlaan 27
NL-5246 GA  Rosmalen
Netherlands

Reply via email to