💾 Archived View for bbs.geminispace.org › u › skyjake › 11847 captured on 2023-12-28 at 16:49:13. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Re: "how i write this when only GET like request is valid?"
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.
Nov 19 · 6 weeks ago
🚀 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.
@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.
I think the original poster may also mean user auth and such? Which, of course, is done with client certs.
auth i get, i didn't get the get part. (:
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.