๐Ÿ’พ Archived View for bbs.geminispace.org โ€บ s โ€บ Gemini โ€บ 11835 captured on 2023-12-28 at 16:04:56. Gemini links have been rewritten to link to archived content

View Raw

More Information

โžก๏ธ Next capture (2024-02-05)

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

how i write this when only GET like request is valid?

that's the question. how this text is published if gemini only supports get like requests and the request only contains the url.

Posted in: s/Gemini

๐Ÿ™ norayr

Nov 19 ยท 6 weeks ago

7 Comments โ†“

๐Ÿš€ skyjake ยท Nov 19 at 06:06:

Gemini URLs can contain a query string. The server can interpret the query string however it wants, in this case it is the text that is being posted.

The requested URL can be up to 1024 bytes long in total, so that allows posting a couple of short paragraphs worth of text with a single request.

๐Ÿ™ norayr ยท Nov 19 at 12:25:

or a file of size not more than 1024 bytes, right?

otherwise, if we upload bigger file or comment, that would go via titan?

titan is encrypted right?

does it have request size limitation?

๐Ÿš€ skyjake ยท Nov 19 at 13:00:

The URL still needs to be percent-encoded, so an arbitrary file must be really small to fit into 1024 bytes.

Yes, Titan is a better choice for uploading data to a server. It uses TLS just like Gemini, so it is encrypted. The server can define the maximum upload size limitation.

๐Ÿš€ clseibold ยท Nov 19 at 18:11:

GET and POST don't directly correlate to Gemini because Gemini is not based off of HTTP. Gemini has request strings, and part of the request string can be a query, which is just information that you are sending to the server. So, I would say it's not equivalent to GET nor to POST.

I will relent that it's *almost* like GET in that it gets a response back, and that HTTP GET can also have a query string, but the similarities end there. HTTP GET requests can have a bunch of headers, and even whole payloads. Gemini requests don't use any of that.

๐ŸŒฒ sloum ยท Nov 22 at 04:23:

@clseibold Technically gemini can support multiple & separated fields in a request. The problem is that a type 10 response will just put the value as the querystring. But there is nothing stopping you from using a link like gemini://example.com/cgi/mycgi?a=12&b=23

So you can have cgi applications that take in multiple values, but they have to come from hard coded links and not as a request to a type 10 response. There are quirky ways to work around all of that too, of course.

All that to say: I mostly agree with you regarding GET, but with an asterisk. I certainly agree with you that it is not apt to compare gemini and http responses/requests.

๐ŸŒฒ sloum ยท Nov 22 at 04:24:

I think the original poster may also mean user auth and such? Which, of course, is done with client certs.

๐Ÿ™ norayr ยท Nov 28 at 23:54:

auth i get, i didn't get the get part. (: