Re: urls longer than 1024 characters

Tim Chase <[email protected]>
Newsgroups gmane.comp.web.lynx.devel
Message-ID <[email protected]>
On 2023-01-25 21:57, Jude DaShiell wrote:
> Would it be possible for lynx to count the characters in an url and if the
> url is longer than 1024 characters offer to send the long url to an url
> shortening service and then catch the shortened url the service sent back
> and then open that shortened url instead?

In theory, it could, but it wouldn't do any good.  The way that
most URL-shortening services work is that they do a 3xx redirect
back to the original long URL, so Lynx would still have to be able
to handle the long form of the URL.

The only way to do it would be to have a web-proxy that would do
the shortening for you, intercept links in each page, shorten them,
inject them back into the page, and then have the proxy make the
request out for the longer URL, and repeat the whole thing.

Ugly, error-prone, and not really a solution where the easiest thing
to do would just be to bump up the buffer-size in Lynx.

-tkc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.