I suppose that would be useful, but let me see if I can help you with your problem...

Today I will recount my story of trying to get
text/x-wiki
treated as
text/plain
by firefox.

To start, you need to realize that the mime-type is provided by the web server in the reply header that proceeds the content data. Therefore, it is up to the server to know that a particular document is of type "text/x-wiki" and send that information to the client (firefox).


I got as far as
$ cat ~/.mime.types
text/x-wiki txt

How the server knows that a particular document is server-dependant. It could be included somewhere in the document contents itself, added in a control file like httpd.conf, or determined via the filename itself.

It is this last case that the mime.types file is used. It defines mappings from filename extensions to mime types.

Remember, this is done ON THE SERVER.


(thinking it is like an alias)
which indeed gets read as firefox, but due to a lack of documentation
in /usr/share/doc/mime-support/
and /etc/mime.types
I was not able to proceed further.

In fact, it does not get used by firefox because it, as a client, will use whatever mime-type was sent by the server. Yes, firefox may read that file, but it is not used when processing fetched documents.

On the client, it is the /etc/mailcap (or ~/.mailcap) file that defines how to operate based on a files mime-type. Do "man mailcap" for more information (that one is part of the mime-support package).


One indeed finds /usr/share/man/man5/mime.types.5.gz, belonging to a
totally different package.

Interesting. Can you tell me which one and I'll look at moving it over to the mime-support package?


OK, never mind. It will forever remain a mystery. I now use WWWOFFLE's
CensorHeader
{
 <http://*/*?*action=raw>Content-Type=text/plain; charset=utf-8
}

WWWOFFLE is an http proxy and thus is able to make adjustments to the reply header sent by the web server to the client.

                                          Brian
                                  ( [EMAIL PROTECTED] )

-------------------------------------------------------------------------------
Don't marry someone you can live with. Marry someone you can't live without.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to