💾 Archived View for bbs.geminispace.org › s › Gemini › 11835 captured on 2024-02-05 at 10:38:05. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-12-28)

➡️ Next capture (2024-03-21)

🚧 View Differences

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

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

2023-11-19 · 3 months ago

6 Comments ↓

🚀 skyjake [mod...] · 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 [OP] · 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 [mod...] · 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.

🌲 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 [OP] · Nov 28 at 23:54:

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