Re: [server question] What can be done with server side scripting?

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 proxies
the 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 you
need to do is print the correct response code and content type. So a
hello world would look like:

printf "20 text/gemini\r\n"
printf "hello world"

I would look at the specification or other CGI scripts for more
examples.

---

Previous in thread (5 of 7): 🗣️ Omar Polo (op (a) omarpolo.com)

Next in thread (7 of 7): 🗣️ Frank Jüdes (Frank.Juedes (a) linux4specialists.com)

View entire thread.