2009/2/5 Caldarale, Charles R <chuck.caldar...@unisys.com>:
>> From: Dave Pawson [mailto:dave.paw...@gmail.com]
>> Subject: Re: TC6 ${CATALINA_HOME}/conf/web.xml Is this the
>> place to constrain the mime type?
>>
>> Unless the client requests application/xml I want to refuse the
>> request.
>
> I don't think you quite appreciate the situation yet.  An HTTP client does 
> not *request* any particular mime type; the client *may* specify the mime 
> types it would like to accept in response,

OK, being precise: Unless the client specifies that one single mime
type (and no other), I want to reject it
with an error.  Equally if no mime type is specified I'll refuse to
serve a response other than an error.


 but the server is pretty much allowed to return whatever it wants (or
a 406, at the server's discretion).  If the client doesn't like a
response type of application/xml, too bad for the client.

Exactly  what I'm after.

Is a filter the right TC tool for that Charles?


regards



-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to