💾 Archived View for gemini.bunburya.eu › newsgroups › gemini › messages › 1646335321.bystand@zzo38co… captured on 2024-05-26 at 15:21:27. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

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

Re: teletext-ish pages?

Message headers

From: news@zzo38computer.org.invalid

Subject: Re: teletext-ish pages?

Date: Thu, 03 Mar 2022 11:30:56 -0800

Message-ID: <1646335321.bystand@zzo38computer.org>

Message content

Dan Purgert <dan@djph.net> wrote:

Shouldn't be too difficult to write a gemini browser/client to
understand the "file://" URL prefix instead of just "gemini://".

Yes, I believe any Gemini client ought to be designed to support it

(although, it could be limited to only user entered URLs and links

from other local files, so that remote files cannot link to locals).

Sometimes the MIME type will not be known. Something that would help

(not only for this but also web browsers with HTTP(S), too) is a URI

scheme for overriding the MIME type of the response.

>
> Heck, why not just run gemini over http. :-)
Install apache/nginx, host the *gmi files straight from it.

Yes, you can serve files of any type from HTTP(S), just as much as you

can also do with Gemini, etc. There is the MIME type header too, so it

can also identify the file format.

Granted, a normal web-browser will only see them as plaintext files,
and not actually be able to interact with them as a gemini client can.

I had proposed a way in which this would be possible, using a extra

HTTP response header (which MUST be implemented regardless of TLS or not):

You can have multiples, and specify a MIME type and target URL. If it is

a file type expected in that context (e.g. HTML for a top level document,

or PNG where a picture is expected), then it loads that one instead but

keeps the current URL (for the purpose of relative links, window.location,

etc). If it is a executable type (JavaScript or WebAssembly), then it will

be executed (if the end user has not disabled this capability) in order

to interpret the file and convert it to the expected format.

It isn't implemented, but it should be.

--

Don't laugh at the moon when it is day time in France.

Related

Parent:

Re: teletext-ish pages? (by Dan Purgert <dan@djph.net> on Thu, 3 Mar 2022 13:04:23 -0000 (UTC))

Start of thread:

teletext-ish pages? (by <joe@example.invalid> on Thu, 3 Mar 2022 06:49:40 -0000 (UTC))