💾 Archived View for gem.benscraft.info › mailing-list › messages › 136 captured on 2021-12-05 at 23:47:19. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

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

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

- mingmengtou at use.startmail.com

@ Thu, 01 Apr 2021 18:36 +0100

Full Thread

Reply to Omar Polo <op at omarpolo.com>

────────────────────────────────────────────────────────────────────────────────

Omar,

Thank you for your help.

There are some difference on how Gemini servers implements CGI.
Usually[0] they just execute your script with a bunch of environment
variable set, and expect you to handle the transaction. For instance, a
simple "hello world"-tier script could be:
#!/bin/sh
printf "20 text/gemini\r\n"
echo "# Hello Gemini"

I can see that this would work.

but check the documentation of your server of choice (and also the
protocol specification.)
Cheers,
Omar Polo

I didn't notice that agate was static only - but problem solved: know the format and to check server.

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

I'm probably going to go with GLV

Thanks Neil

════════════════════════════════════════════════════════════════════════════════