tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: How to validate or parse HTTP request headers ( tomcat version 6.0.18 )
Date Tue, 14 Jan 2014 17:40:56 GMT
kalasareddy lingaraja wrote:
> Hi
> 
> i have task to validate or parse following http header
> 
> Accept
> Accept-Charset
> Accept-Encoding
> Accept-Language
> Accept-Datetime
> Content-Length
> Content-MD5
> Content-Type
> 
> lets take  Accept-Language as an example , if header language comes other
> than en-us i should reject the request with customized code response.
> 
> let me know ways to achieve the task?
> 
> can we do with any configuration files ?
> 
> we are using tomcat  6.0.18
> 
> waiting for earliest replay
> 

Have a look at the URLRewriteFilter, here : http://tuckey.org/urlrewrite/

Or, if this is a school exercise, then you'll have a bit more reasearch and work to do 
yourself, to write your own servlet filter to do the job.



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


Mime
View raw message