💾 Archived View for rawtext.club › ~sloum › geminilist › 006625.gmi captured on 2023-09-08 at 16:53:48. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-11-30)
-=-=-=-=-=-=-
remyabel at tilde.team remyabel at tilde.team
Sun Jun 6 04:51:20 BST 2021
- - - - - - - - - - - - - - - - - - -
On Fri, Jun 04, 2021 at 09:39:42PM -0500, Andrew Singleton wrote:
I suppose I should come up with a use case I want and then ask if they can
be done we I really don't feel in my depth on technical aspects.
I just know serve scripts are possible, but I don't know what is
realistically doable and it of that what actually works within the
protocol's strengths.
You can basically do any sort of CGI scripting you want, in python,shell, etc. I wrote a very simple Python script here that simply proxiesthe tilde wiki over gemini:
gemini://tilde.team/~remyabel/wiki.cgi
It's not very advanced but it gets the job done. To start off, all youneed to do is print the correct response code and content type. So ahello world would look like:
printf "20 text/gemini\r\n"printf "hello world"
I would look at the specification or other CGI scripts for moreexamples.