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

2021-08-28 Thread Mouse
Karen Lewellen writes, in reply to the patch I posted,

> 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?

What I gave is a change to the source.  If the "service" in question
lets you compile software yourself, or copy in software compiled
elsewhere, then you could compile your own version of lynx with that
change - or any others you want.

At least, in principle.  I don't know you well enough to know whether
you have the skill (or inclination!) to do that, even if there aren't
technical restrictions in the way.

Jude DaShiell writes that

> The REDIRECTION_LIMIT variable is the last line in lynx.cfg.

This indicates that the answer depends on which version of lynx is in
use, because the version I was working with, the version that patch
applied to, had the limit of 10 hardwired into the code, not
user-configurable.  That's apparently changed since then, so it depends
on whether you're using a version before or after that change.  (It's a
good change; if I'd been more comfortable in the innards of lynx back
in 2018, or if I'd been more ambitious, I would have done something
like that myself value rather than just raising the hardwired limit
from 10 to 25.)

Even if your lynx has that configurability, though, depending on just
what "service" means here, you may or may not be in a position to use
your own lynx.cfg.

/~\ 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


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

2021-08-28 Thread Jude DaShiell
Good news here.  The REDIRECTION_LIMIT variable is the last line in
lynx.cfg.  I just set mine to 1.  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 
> > 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 mo...@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
>
>

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


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

2021-08-28 Thread Karen Lewellen

...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 
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 mo...@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


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

2021-08-28 Thread Mouse
> [...], 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 
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!")
 #defineSERVER_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 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] what controls the redirect limit?

2021-08-28 Thread Karen Lewellen

Hi all,
There is a company called infusionsoft which provides marketing and sales 
tools for business.
Often enough that I desire a solution, I will activate one of their market 
cover links, say registering for an event, and because of all the steps, 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?

Thanks,
Karen



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