Gemini without a browser
I’ve been working lately on adding Gemini and Spartan protocol support to my Gopher-only browser, Noboru, and since I use Lazarus + OpenSSL for development, I needed to find a way to dump the request data into the console so it can be compared to the request inside Noboru.
Basically, I need to send a TLS-wrapped request to a specific hostname (in this case, gemini.jasonsanta.xyz, sorry Jason for clobbering your Gemini capsule) and port (1965 is the default Gemini port) with the full Gemini URL followed by CRLF (\r\n).
The easiest way it by using OpenSSL’s built-in tool:
$ printf "gemini://gemini.jasonsanta.xyz\r\n" | openssl s_client -ign_eof -connect gemini.jasonsanta.xyz:1965
...
20 text/gemini;lang=en
## Welcome to the gemini capsule of jason123santa
This is the gemini capsule of jasonsanta.xyz
I might make some gemlogs on here that will be published to gemini first. Might publish the gemlogs over to my http site at some point but for now there will be some posts that will be on a gemini first type of system. What I will not be doing is bring my posts from my http site to here. This will only be for new posts.
### Gemlogs
=> occ-day-7.gmi Old computer challenge day 7
=> occ-day-6.gmi Old computer challenge day 6
=> occ-day-5.gmi Old computer challenge day 5
=> occ-day-4.gmi Old computer challenge day 4
=> occ-day-3.gmi Old computer challenge day 3
=> occ-day-2.gmi Old computer challenge day 2
=> occ-day-1.gmi Old computer challenge day 1
### Where you can find me across the web
=> https://jasonsanta.xyz website
=> https://fosstodon.org/@jason123santa Mastodon
=> https://social.jasonsanta.xyz/users/jason123santa Pleroma
I’ve omitted OpenSSL’s chatter from the output and left only the Gemini server response. It’s that easy.
permalink http://sizeof.cat/post/gemini-without-browser/
created August 3, 2024
words 278
tags #gemini, #spartan, #noboru, #small web
























