Telnet - Issue Connecting to Gopher Servers

40 views
Skip to first unread message

Navan Chauhan

unread,
Mar 8, 2024, 5:37:26 PM3/8/24
to mTCP
There is a good chance this could simply be a user error on my part. I am trying to connect to a few different gopher servers: gopher.navan.dev:70 sdf.org:70 and gopher.floodgap.com:70

```
```

Just pressing enter after the connection is established, my server responds with an error message (I checked in my logs and that is because it is sending a '\' instead of a blank carriage return which is completely fine).

And when I instead press `/` it gives the correct gophermenu output, so the program is definitely able to connect to the server properly.

Now, my problem is that as soon as I press `/` it sends that to the server instead of waiting until I press the enter key. Is this the intended behavior? Because on GNU telnet I am able to type out `/posts` hit enter and get the correct results.

On the other hand, connecting to sdf.org and gopher.floodgap.com, nothing happens when I either press enter, `/` or `\` it doesn't update anything after "Connected to sdf.org (205.166.94.16) on port 70"

Michael Brutman

unread,
Mar 9, 2024, 11:20:20 PM3/9/24
to mTCP
I responded off-list but I wanted to close the loop here ...

I made a few observations and comments about CF/LF as the standard line terminator for Internet programs, Telnet options negotiation (and when not to use it), and line-by-line mode vs. character mode.  It looks like the server here is at fault as it does not handle CR/LF correctly.


-Mike

Reply all
Reply to author
Forward
0 new messages