💾 Archived View for rawtext.club › ~sloum › geminilist › 000942.gmi captured on 2020-09-24 at 02:13:47. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

<-- back to the mailing list

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 veryinteresting!

I have started writing a patch for curl which adds support for thegemini protocol. I just joined the mailing list, so I am not sure ifanyone 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 `curlgemini://gemini.circumlunar.space`. It's currently the result of about ahour's worth of hacking, so beware of dragons. I plan to make it a bitmore 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 beaccepted to the upstream curl project at least until there is afinalized spec.

In the meantime, feel free to build/use this for non-productionpurposes, and if anyone has already done work on this I'd be curious tolearn about it.

Best,Ben