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.
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
Yeah, just figured it out but thanks!
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
---
Previous Thread: [Question][discussion] is a Gemini based piratebox possible or even wanted?