πŸ’Ύ Archived View for gem.benscraft.info β€Ί mailing-list β€Ί messages β€Ί 215 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: JetForce vs. Molly Brown Server: CGI-variable SCRIPT_NAME is not

present

- Frank JΓΌdes <Frank.Juedes at linux4specialists.com>

@ Tue, 13 Apr 2021 12:36 -0400

Full Thread

Reply to Matthew Ernisse <matt at going-flying.com>

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

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@going-flying.com
gemini://going-flying.com/

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

Attachments

Frank_Juedes.vcf