Re: Mime-Type applet - test
On Nov 13, 11:28 am, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
On Wed, 11 Nov 2009 15:23:08 -0800 (PST), Andrew Thompson
<andrewtho...@gmail.com> wrote, quoted or indirectly quoted someone
who said :
There is a new mime-type check applet available.
Mine is posted athttp://mindprod.com/applet/mimecheck.html
The main difference from Andrew's is it maps extensions to a list of
plausible Mime types, so you know if you are getting something
reasonable, not just a legal mime.
I like that aspect of your applet, but will not
be attempting to replicate it in mine. I am
guessing you have a file that identifies mime-types
by extension?
My applet does ask Java to guess a mime-type if
not supplied, but I noticed that:
a) It does not guess JNLP!
b) It is fooled by a name ending with query
arguments.
e.g.
index.html -> text/html
index.html?msg=Hi -> ?
At Andrew's urging, I modified mine to detect 404 and other errors and
show them as such rather than as incorrect mime types.
It's always nice to make suggestions to site
owners/software suppliers that you know *care*
about their product and will act expediently.
If I had not been so confident you would alter
your applet 'in a jiffy', I would probably have
started this thread before informing you of the
minor inconsistency I noticed.
--
Andrew T.
pscode.org