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

View Raw

More Information

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

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

Comment by ๐Ÿ™ norayr

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

In: s/Gemini

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?

๐Ÿ™ norayr

Nov 19 ยท 6 weeks ago

5 Later Comments โ†“

๐Ÿš€ 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. (:

Original Post

๐ŸŒ’ s/Gemini

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.

๐Ÿ’ฌ norayr ยท 7 comments ยท Nov 19 ยท 6 weeks ago