Re: Handling of MIME types for markup?

On Sat, 7 Apr 2001, Terje Bless wrote:

> On 06.04.01 at 14:11, Nick Kew <nick@webthing.com> wrote:
>
> >[...] this applies whenever the validator has to fetch an external DTD.
> >
> >One element [is] the use of an "Accept: text/*" header when
> >SP retrieves a document via HTTP.  The rationale for this is that SP
> >has no use for non-text documents, and so shouldn't try to fetch them.
> >
> >In recent correspondence, Liam has suggested that this may not in
> >fact be the best, or even correct, thing to do:
[...]
> "text/*" is obviously too narrow.
[...]
> >So the questions for discussion are:
> >  (1) What MIME types *should* we accept?
>
> Every MIME type that SP can handle. This includes text/*ml,
> application/*ml, and whatever else they've come up with now. In practice
> this probably means that you have to keep track of all defined MIME types
> for SGML/XML and accept those -- until you finally give up and just list
> */* :-) -- and allow additional MIME types to be specified with
> --http-accept="text/vnd.wap.wml,sgml/*,xml/*" on the command line.

As a simple fix, I've released lq-nsgmls 1.3.4.4 [1] with Accept: */* in
place of Accept: text/*.

[1] http://www.htmlhelp.com/tools/validator/src/lq-sp-1.3.4.4.tar.gz

-- 
Liam Quinn

Received on Thursday, 19 April 2001 15:16:20 UTC