lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] what controls the redirect limit?


From: Karen Lewellen
Subject: Re: [Lynx-dev] what controls the redirect limit?
Date: Sun, 29 Aug 2021 04:25:13 -0400 (EDT)

Or ask the administrator to make the change as it seems like a fine one for everyone.



On Sat, 28 Aug 2021, Jude DaShiell wrote:

Good news here.  The REDIRECTION_LIMIT variable is the last line in
lynx.cfg.  I just set mine to 10000.  For anyone using lynx on a service,
copying lynx.cfg to a user directory then running
lynx -c ./lynx.cfg will use your copy and not the system's copy of
lynx.cfg.  You would need to chmod lynx.cfg so you could edit it once in
your user directory though.


On Sat, 28 Aug 2021, Karen Lewellen wrote:

...I seem to be lost.
My hope is that there is something I can influence, as I use Lynx on a
service, not as a part of my own computer.
So I am unsure just where that would go exactly?
kare



On Sat, 28 Aug 2021, Mouse wrote:

[...], I reach a lynx error that says something like maximum number
of 10 redirects reached..and I can go no further.

What in Lynx controls the number of redirects the browser considers
safe, and how can I increase that number?

A few years back, I was working at a job that, "thanks" to a confluence
of various reasons, ended up with me wanting to use lynx to read
Google-hosted mail through their webmail interface.

I promptly ran into the ten-redirection limit.

As for how I dealt with it, turns out I still have the commit:

commit 028e3e6312bd2a6d108ec4755165091be9426ce4
Author: Mouse <mouse@...redacted...>
Date:   Tue Mar 20 09:37:26 2018 -0400

   Boost redirection count limit to 25.

diff --git a/LYMessages_en.h b/LYMessages_en.h
index b0c7c44..85b490e 100644
--- a/LYMessages_en.h
+++ b/LYMessages_en.h
@@ -631,7 +631,7 @@
#define ERROR_UNCOMPRESSING_TEMP gettext("Error uncompressing temporary
file!")
#define UNSUPPORTED_URL_SCHEME gettext("Unsupported URL scheme!")
#define UNSUPPORTED_DATA_URL gettext("Unsupported data: URL!  Use SHOWINFO,
for now.")
-#define TOO_MANY_REDIRECTIONS gettext("Redirection limit of 10 URL's
reached.")
+#define TOO_MANY_REDIRECTIONS gettext("Redirection limit of 25 URLs
reached.")
#define ILLEGAL_REDIRECTION_URL gettext("Illegal redirection URL received
from server!")
#define SERVER_ASKED_FOR_REDIRECTION \
gettext("Server asked for %d redirection of POST content to")
diff --git a/WWW/Library/Implementation/HTAccess.c
b/WWW/Library/Implementation/HTAccess.c
index 4c2c1be..a1f4b7e 100644
--- a/WWW/Library/Implementation/HTAccess.c
+++ b/WWW/Library/Implementation/HTAccess.c
@@ -769,8 +769,10 @@ static BOOL HTLoadDocument(const char *full_address,
/* may include #fragment */
     * 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
+     *
+     * Upped to 25 because 10 breaks gmail. :-?  - Mouse
     */
-    if (redirection_attempts > 10) {
+    if (redirection_attempts > 25) {
 redirection_attempts = 0;
 HTAlert(TOO_MANY_REDIRECTIONS);
 return NO;

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
X  Against HTML         mouse@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 mailing list
Lynx-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lynx-dev







reply via email to

[Prev in Thread] Current Thread [Next in Thread]