💾 Archived View for rawtext.club › ~sloum › geminilist › 006261.gmi captured on 2023-11-14 at 09:30:09. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-11-30)

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

<-- back to the mailing list

[tech]: looking for cgi help/documentation/faq or similar

Omar Polo op at omarpolo.com

Thu Apr 1 13:33:16 BST 2021

- - - - - - - - - - - - - - - - - - - 

mingmengtou at use.startmail.com writes:

Hi, where might i find help/docs/faq on gemini cgi? For html i am using:
#!/bin/bash
echo "Content-type: text/html"
echo ""
[rest of script]
I have not found information for starting a cgi script output for gemini.
Thank you for any assistance.
Cheers
Neil

There are some difference on how Gemini servers implements CGI.Usually[0] they just execute your script with a bunch of environmentvariable set, and expect you to handle the transaction. For instance, asimple "hello world"-tier script could be:

#!/bin/sh printf "20 text/gemini\r\n" echo "# Hello Gemini"

but check the documentation of your server of choice (and also theprotocol specification.)

Cheers,

Omar Polo

[0]: At least with gmid, GLV-1.12556 and (to some extent) vger; don't know what other servers do.