CGI
Paul Boyd
boyd.paul2 at gmail.com
Fri Jul 17 19:26:58 BST 2020
Hmm.. interesting. I'm already packing data into the URL path, so yeah, I
can just put the rest of the data in there. I'll have to try it out when I
get a minute.
The protocol spec has a max URL size of 1024 bytes, but as long as the
inputs are short I think it will work.
Paul
On Fri, Jul 17, 2020 at 1:37 PM Michael Lazar <lazar.michael22 at gmail.com>
wrote:
> I like the form idea and I wrote something similar for gopher a while back
> [0].
>
> https://gopher.floodgap.com/gopher/gw?=mozz.us+7005+312f64656d6f2d666f726d
>
> In my case, I used URL query parameters to keep track of previously
> submitted
> form values. This worked because query params do not have any special
> meaning
> in gopher URLs. For gemini the query component is reserved, but you could
> probably accomplish the same thing using a special path component with the
> encoded fields in it.
>
> gemini://example.com/cgi-bin/form/name%3Dpaul%26location%3Dcanada/
>
> - mozz
>
> [0]
> https://github.com/michael-lazar/flask-gopher/blob/master/demo/run_server.py#L154
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20200717/513ad82b/attachment.htm>
More information about the Gemini
mailing list