💾 Archived View for station.martinrue.com › arman › 4c169f9ef53047c88c7eca2c470f3b83 captured on 2023-01-29 at 06:02:08. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-07-16)

➡️ Next capture (2023-03-20)

🚧 View Differences

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

👽 arman

Sorry in advance for this Gemini-centric log... Could someone explain to me what "CGI" is in the context of Gemini / Gemini servers?

8 months ago · 👍 justyb, eph, know

Actions

👋 Join Station

5 Replies

👽 arman

Perfect!! Thank you so much everyone! · 8 months ago

👽 acidus

funny enough, Gemipedia is itself implemented as a CGI

the easiest way to think about is that most early web servers (and Gemini servers) served files. you sent a request for /bar/ foo.html or /xkcd/index.gmi and those were actual files on the disk. The server reads the contents of the file and returns it. CGI allows is the server to say “ instead of opening a file, I’m going to run a program and return its output to the user, as if it was a file“. this allows you to make simple

interactive services. · 8 months ago

👽 justyb

In that Gemipedia page, just replace web server with Gemini server. But basically provides a means for a Gemini server to pass variables to some program, and that program can read the variables and then do something with that. So you could have a python script, shell script, C program, Rust program, or really whatever read those things the server passes and then pass back some sort of text that will act as the response. · 8 months ago

👽 justyb

Common Gateway Interface. Check it out at Gemipedia: gemini://gemi.dev/cgi-bin/wp.cgi/view?Common%20Gateway%20Interface · 8 months ago

👽 arman

Or maybe just where I might find some information on it? · 8 months ago