-- Leo's gemini proxy

-- Connecting to midnight.pub:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

< The Nightfall Express

~alexlehm


I played around a bit with the protocol and came up with a shell command that can retrieve Nex urls, e.g. to get my page:


echo "/alexlehm/"|nc nex.nightfall.city 1900|less


this even works to get images like this:


echo "/alexlehm/Alex_in_Anzug.jpg"|nc nex.nightfall.city 1900 > alex.jpg




Write a reply


Replies


~m15o wrote:


this is really cool! I never used netcat before.


I added what you did in a little script:


#!/bin/ksh

echo $2 | nc $1 1900 | less

and it can be used like that:

rex nex.nightfall.city /m15o/

-- Response ended

-- Page fetched on Fri May 17 07:00:44 2024