💾 Archived View for rawtext.club › ~sloum › geminilist › 006345.gmi captured on 2023-11-14 at 09:26:35. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-11-30)
-=-=-=-=-=-=-
Frank Jüdes Frank.Juedes at linux4specialists.com
Tue Apr 13 17:36:37 BST 2021
- - - - - - - - - - - - - - - - - - -
Hi Matthew,
nice job! some parts really do look similar to my perl-code - same problem generates similar programs…
I am able to read python-code, but have very little experience with the language. That "whitespace has a meaning" thing from the first version really kept me away…
My GGI-package goes a little further with automatic redirection:
* if the variable QUERY_STRING is not empty, it will print a temporary re-direct with the content of tge query-string attached to the URL into the PATH-component (PATH_INFO) and exit. * This will change the url from for example: gemini://server.domain/cgi-bin/man?grep to gemini://server.domain/cgi-bin/man/grep, so that the next input can be requested from the client without overwriting the first value * All this happens transparent for the application without the developer to re-implement that re-direct in each program.
My gemini-capsule is not yet officially on-line, but you can find the GGI-package at gemini://h2903872.stratoserver.net/
On 2021-04-13 10:59, Matthew Ernisse wrote:
On Mon, Apr 12, 2021 at 10:59:57PM -0400, Frank Jüdes said:
i am not sure if the author of the Molly-Brown server is reading this list,
i tried to sign up on tildegit.org, but they won't accept my e-mail address
there. I have created a perl-package to make the development of CGI programs
for the gemini-space somewhat easier for perl-programmers, especially the
handling of multiple parameters can be handled fully transparent for the
application.
But that mechanism is based on the SCRIPT_NAME cgi-variable!
In the hopes that you may find this useful, I have a light wrapper I use
to write CGIs for Molly Brown in Python. It has served me fairly well with
fairly complex CGIs.
Module:
gemini://going-flying.com/git/cgi/gemini.git/tree/master/cgi-bin/gmicgi/__init__.py
Some demo code:
gemini://going-flying.com/git/cgi/gemini.git/tree/master/cgi-bin/test
All the CGIs I have at the moment:
gemini://going-flying.com/git/cgi/gemini.git/tree/master/cgi-bin/
--Matt
---
Matthew Ernisse
matt at going-flying.com
gemini://going-flying.com/
-------------- next part --------------An HTML attachment was scrubbed...URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20210413/770342c3/attachment.htm>-------------- next part --------------A non-text attachment was scrubbed...Name: Frank_Juedes.vcfType: text/x-vcardSize: 253 bytesDesc: not availableURL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20210413/770342c3/attachment.vcf>