Data upload?
So the spec is really short and I'm not sure I understood it completely. Does anyone know if uploading data is supported? Could you make something like a BBS with just Nex or would you need someting else to upload data? Cause from what I can tell there's no way to upload data.
Also what's up with directories? From what I understood from the spec, if the server sends => and then a url, that's a link to something in the directory. But how does that client know it's supposed to be a directory, and not a text file? Does it just assume it's a directory if the requested path ends in a / or?
2025-01-26 ยท 1 year ago
6 Comments โ
๐ป ps ยท 2025-01-26 at 11:59:
Client detects MIME type from response header (if provided) it does not parse it from the content. In other words, you should send new request to get the meta line from response. If the meta data not received, and status code 20 (success) returned, then you MAY suggest content type based on path extension, for example.
To upload the data, take a look on Titan protocol.
๐ asdf [OP] ยท 2025-01-26 at 12:04:
I did not know there was a MIME type for directories, what MIME type would that be?
Edit: Did you say it uses a status code? I don't think those are mentioned anywhere in the spec
๐ป ps ยท 2025-01-26 at 12:11:
I did not know there was a MIME type for directories, what MIME type would that be?
Gemini server should ALWAYS return content type for 20 status code, where you can route your app.
In NEX protocol, yes there is something about slash at postfix, because there is no headers. In Gemini use header line.
Usually, servers return #20+text/gemini for directories listings in gemtext format. I don't know any gopher-like responses to handle file operations. By the way, Titan is just uploading protocol, that contain single header line + data bytes. You will always get back the response in Gemini format.
๐ asdf [OP] ยท 2025-01-26 at 12:16:
I'm not sure what you mean by "route your app" but I guess it's irrelevant since it was for gemini, which this conversation is not about. What do you mean by "postfix"?
Edit: I tried googling postfix and apparently it's an email server, which I doubt is what you meant. does the term postfix have any meaning other than the email server?
๐ป ps ยท 2025-01-26 at 12:20:
I'm not sure what you mean by "route your app" but I guess it's irrelevant since it was for gemini, which this conversation is not about. What do you mean by "postfix"?
Sorry for my English misunderstanding, let others help you!
๐ skyjake [...] ยท 2025-01-26 at 14:03:
Does anyone know if uploading data is supported?
No, Nex only supports downloads. There is a separate protocol called NPS for uploading data, and it is similarly very simple/limited:
โ nex://nex.nightfall.city/nps/info/
Lagrange only supports Nex, not NPS.
Could you make something like a BBS with just Nex or would you need someting else to upload data?
Well, you could hack something together with data encoded as file paths, but not sure how much sense that makes... Uploading data in some form is pretty essential for a discussion forum, for making posts and comments.
what's up with directories?
Yeah, paths that end with a slash are assumed to be directories.