πŸ’Ύ Archived View for gemi.dev β€Ί gemini-mailing-list β€Ί 000973.gmi captured on 2024-05-26 at 17:04:04. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-12-28)

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

Get input on gemini

1. ysu (yosuu (a) tutanota.com)

Hi, I was wondering how you would get user input in gemini? For example, 
like gemini://geminispace.info.
I have cgi scripts setup and working too.

Link to individual message.

2. Anna β€œCyberTailor” (cyber (a) sysrq.in)

If QUERY_STRING cgi variable is empty, return an input prompt:

10 Some prompt text\r\n

If it isn't, parse it and generate a "20 text/gemini" or something
else.

There's also "sensitive input" code (11) for something like passwords.

references:
gemini://gemini.circumlunar.space/docs/specification.gmi

Link to individual message.

3. ysu (yosuu (a) tutanota.com)

Yeah, just figured it out but thanks!

Link to individual message.

4. u9000 (u9000 (a) posteo.mx)

On Sat, 2021-07-17 at 12:00 +0100, gemini-request@lists.orbitalfox.eu
wrote:
> If QUERY_STRING cgi variable is empty, return an input prompt:
> 
> 10 Some prompt text\r\n

This reminds me of a possible ambiguity in the spec that I noticed. (I
would have brought this up earlier if I remembered.) The specification
says the following about responses:
>> Gemini response[s] consist of a single CRLF-terminated header line,
>> optionally followed by a response body.

It also says that clients must recognize both CRLF and LF as line-
terminators, with the exception of responses requiring CRLF. Does this
mean that capsules can surve multi-line prompts by including LFs (not
CRLFs) within the <META> portion of the response?

> references:
> gemini://gemini.circumlunar.space/docs/specification.gmi

-- 
u9000 (Nine)
They, Them, Theirs

Link to individual message.

---

Previous Thread: [Question][discussion] is a Gemini based piratebox possible or even wanted?

Next Thread: Simple PHP proxy?