Adding gemini protocol to curl
Ben Burwell
ben at benburwell.com
Thu May 21 21:37:47 BST 2020
Hi all, I'm just starting to play around with gemini -- seems very
interesting!
I have started writing a patch for curl which adds support for the
gemini protocol. I just joined the mailing list, so I am not sure if
anyone has already done any work with curl; I did see some mentions of
`gurl` tools in the archives but I did not see mention of curl itself.
My curl tree with the gemini patch is available here:
https://git.sr.ht/~benburwell/curl
If you build it, you should be able to successfully run `curl
gemini://gemini.circumlunar.space`. It's currently the result of about a
hour's worth of hacking, so beware of dragons. I plan to make it a bit
more robust as well as add better response header handling (think `curl
-i` -- right now they are just printed without being parsed at all),
redirect handling (think `curl -L`) and alternate URL handling (think
`curl -H host:other.site http://example.com`).
I suspect that a patch to add support for a new protocol would not be
accepted to the upstream curl project at least until there is a
finalized spec.
In the meantime, feel free to build/use this for non-production
purposes, and if anyone has already done work on this I'd be curious to
learn about it.
Best,
Ben
More information about the Gemini
mailing list