Hi everyone :) Brand new to Gemini - not sure I understand how something like Station is even possible. Does Gemini have the equivalent of POST?
6 days ago 路 馃憤 melyanna, fab, hanzbrix, bavarianbarbarian, justyb
@justyb Hah, I see. That's quite a hack. 路 5 days ago
@justyb Being the MVP! 馃 路 6 days ago
However per the spec for Gemini protocol.
When making a request, the URI MUST NOT exceed 1024 bytes, and a server MUST reject requests where the URI exceeds this limit
So that means that a reply is size limited. Usually beneath 1KB. There's a sister protocol called Titan that details a protocol for sending much more data than what gemini alone allows for.
gemini://transjovian.org/titan/page/The%20Titan%20Specification 路 6 days ago
gemini://transjovian.org/titan/page/The%20Titan%20Specification
So when I hit the reply to this post of yours. My client tries the address gemini://station.martinrue.com/apetresc/30af9caa2f5d43278f872f4e1d68f132/f0df/reply.
That returns a status 10 with the text "Write reply". I type in my reply and hit "send" and it'll send a request to that address once again, but this time with my reply appended as a query string.
gemini://station.martinrue.com/apetresc/30af9caa2f5d43278f872f4e1d68f132/f0df/reply?This%20would%20be%20where%20my%20reply%20would%20go. 路 6 days ago
gemini://station.martinrue.com/apetresc/30af9caa2f5d43278f872f4e1d68f132/f0df/reply
If you read the Gemini spec gemini://geminiprotocol.net/docs/protocol-specification.gmi you'll see that clients respond to status 10 by retrying the URI but with a query string of the data to send.
So if you were to go to gemini://example.net/search and that returns status 10 (or 11), the the client you are using will pop up a box to ask for input. Once entered, your client sends a request to:
gemini://example.net/search?the%20stuff%20you%20entered
As for HTTP methods like GET/HEAD/POST/etc... Gemini does not have that. 路 6 days ago