[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] what controls the redirect limit?
From: |
Mouse |
Subject: |
Re: [Lynx-dev] what controls the redirect limit? |
Date: |
Sat, 28 Aug 2021 21:56:38 -0400 (EDT) |
> [...], 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] what controls the redirect limit?, Karen Lewellen, 2021/08/28
- Re: [Lynx-dev] what controls the redirect limit?,
Mouse <=
- Re: [Lynx-dev] what controls the redirect limit?, Karen Lewellen, 2021/08/28
- Re: [Lynx-dev] what controls the redirect limit?, Jude DaShiell, 2021/08/28
- Re: [Lynx-dev] what controls the redirect limit?, Karen Lewellen, 2021/08/29
- Re: [Lynx-dev] what controls the redirect limit?, David Woolley, 2021/08/29
- [Lynx-dev] Google vs redirection limit [was Re: what controls the redirect limit?], Mouse, 2021/08/29
- Re: [Lynx-dev] Google vs redirection limit [was Re: what controls the redirect limit?], Jude DaShiell, 2021/08/29
- Re: [Lynx-dev] what controls the redirect limit?, Karen Lewellen, 2021/08/29
- Re: [Lynx-dev] what controls the redirect limit?, Jude DaShiell, 2021/08/29
- Re: [Lynx-dev] what controls the redirect limit?, Mouse, 2021/08/28
- Re: [Lynx-dev] what controls the redirect limit?, Karen Lewellen, 2021/08/29