πŸ’Ύ Archived View for gemi.dev β€Ί gemini-mailing-list β€Ί 000969.gmi captured on 2023-11-04 at 13:14:15. Gemini links have been rewritten to link to archived content

View Raw

More Information

➑️ Next capture (2023-12-28)

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

Get input on gemini

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.

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.

ysu <yosuu (a) tutanota.com>

Yeah, just figured it out but thanks!

Link to individual message.

u9000 <u9000 (a) posteo.mx>

On Sat, 2021-07-17 at 12:00 +0100, gemini-request at 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?