Re: [Lynx-dev] adjusting the url redirect limit?

2018-10-06 Thread Mouse
>> currently it is 10 redirections.
>> Can this number be increased?

> My experience has been that 10 is effectively infinity: if it doesn't
> resolve in 10, it never does.

I recently had a run-in with a webmailer for which the limit needed to
be somewhere around 14.  I raised it to 25 in the version I use there.

/~\ The ASCII Mouse
\ / Ribbon Campaign
 X  Against HTMLmo...@rodents-montreal.org
/ \ Email!   7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


[Lynx-dev] adjusting the url redirect limit?

2018-10-06 Thread russellbell


Quoth Ms Karen Lewellen:
'currently it is 10 redirections.
'Can this number be increased?'
My experience has been that 10 is effectively infinity: if it
doesn't resolve in 10, it never does.

russell bell

___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


Re: [Lynx-dev] adjusting the url redirect limit?

2018-10-05 Thread Thomas Dickey
On Fri, Oct 05, 2018 at 07:23:29PM -0400, Karen Lewellen wrote:
> Hi folks,
> currently it is 10 redirections.
> Can this number be increased?

It's a constant, implemented in HTAccess.c like this:

/*
 * Don't exceed the redirection_attempts limit.  - FM
 */
if (++redirection_attempts > 10) {
HTAlert(TOO_MANY_REDIRECTIONS);
redirection_attempts = 0;
FREE(use_this_url_instead);
return NO;
}

...and

/*
 * Make sure some yoyo doesn't send us 'round in circles with redirecting
 * URLs that point back to themselves.  We'll set the original Lynx limit
 * of 10 redirections per requested URL from a user, because the HTTP/1.1
 * will no longer specify a restriction to 5, but will leave it up to the
 * browser's discretion, in deference to Microsoft.  - FM
 */
if (redirection_attempts > 10) {
redirection_attempts = 0;
HTAlert(TOO_MANY_REDIRECTIONS);
return NO;
}

Someone might want to propose a configuration patch, e.g., to allow
lynx.cfg to modify that limit.

See these old mentions:

https://lists.debian.org/debian-user/1999/08/msg01165.html
https://lists.gnu.org/archive/html/lynx-dev/1998-08/msg00809.html

and this:

https://github.com/whatwg/fetch/issues/576


-- 
Thomas E. Dickey 
https://invisible-island.net
ftp://ftp.invisible-island.net


signature.asc
Description: Digital signature
___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev


[Lynx-dev] adjusting the url redirect limit?

2018-10-05 Thread Karen Lewellen

Hi folks,
currently it is 10 redirections.
Can this number be increased?
Thanks,
Karen



___
Lynx-dev mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev