lynx-dev
[Top][All Lists]
Advanced

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

Re: [Lynx-dev] Broken Gopher-to-Telnet links


From: Thomas Dickey
Subject: Re: [Lynx-dev] Broken Gopher-to-Telnet links
Date: Sun, 18 Oct 2020 19:36:03 -0400
User-agent: NeoMutt/20170113 (1.7.2)

On Mon, Oct 12, 2020 at 05:44:56PM +0200, Dario Niedermann wrote:
> Lynx 2.8.9dev.11 seems to have a problem with Gopher-to-Telnet links where
> the selector part is empty. If a Gopher server sends a line like this:
> ------------------------------------------------------------------------
> 8Foobar BBS[ TAB ]username[ TAB ]foobar-bbs.net[ TAB ]6359
> ------------------------------------------------------------------------
> Lynx will produce this link:
> 
>       telnet://username@foobar-bbs.net:6359/
> 
> which AFAIK is correct. But if the server sends a line with an empty
> selector field, like this:
> ------------------------------------------------------------------------
> 8Foobar BBS[ TAB ][ TAB ]foobar-bbs.net[ TAB ]6359
> ------------------------------------------------------------------------
> Lynx will produce this, instead:
> 
>       telnet:///
> 
> whereas I, for one, would expect:
> 
>       telnet://foobar-bbs.net:6359/

From the context, you're expecting lynx to guess which of the nearby
urls has a suitable site for filling in the missing information.
 
> While RFC 1436 (Gopher protocol) does not say what to do when a Telnet link
> has an empty selector, the UMN Gopher client does the least surprising thing
> and telnets to foobar-bbs.net on port 6359 with no preset username.

I'm assuming this is the source - I can take a look to see what it does:

https://github.com/jgoerzen/gopher

> 
> I've set up a gophermap on my server where you can test this:
> 
>       <gopher://darioniedermann.it/1/Computing/telnetlinks>
> 
> Regards,
> -- 
> Dario Niedermann   -:-   finger my email address for PGP key, etc.
> 
> Also on the Internet at:            <gopher://darioniedermann.it/>
>                                 <https://www.darioniedermann.it/>
> 
> _______________________________________________
> Lynx-dev mailing list
> Lynx-dev@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lynx-dev

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

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