6
submitted 1 year ago by pmjv to c/gopher

Are you stranded with just your basic Unix toolkit? No internet browser? No gopher client? Use netcat!

echo "/directory/file" | nc domain.name port

For example:

To view tilde.institute root goohermap: echo / | nc tilde.institute 70

or to get a .txt file from: occ.deadnet.se in /users/how.txt

echo /users/how.txt | nc occ.deadnet.se 70

top 2 comments
sorted by: hot top controversial new old
[-] screwtape 2 points 1 year ago* (last edited 1 year ago)

Hmmmm does echo do the CRLF? I thought I normally printf "~tomasino/phlog\r\n" | nc tilde.institute 70 which I guess should actually be printf "%s/%s\r\n" "~tomasino" "phlog" | nc tilde.institute 70

my name is screwtape right

[-] odc 3 points 1 year ago

Even better: netcat has a -C flag that will take care of CRLF.

this post was submitted on 05 Jul 2023
6 points (100.0% liked)

Mostly RFC1436 compliant

239 readers
1 users here now

Welcome to the gopher renaissance

Some useful gopher services:

Discover new places:

Web proxies:

founded 2 years ago
MODERATORS