tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: (tomcat 6) percent encoding problem
Date Fri, 22 Jan 2010 08:10:01 GMT
2010/1/22 Fran├žois Duvalier <m.francois.duvalier@gmail.com>:
> Hi,
>
> When I execute this command:
>
> curl -XGET -i http://localhost:8080/app/rs/system/EN/foo%2Fbar
>
> I receive a 400 BAD REQUEST.
>
> However if I deploy the app to Jetty, the command will work fine.
>
> Question: Is there a way to configure tomcat to behave like jetty with
> regards to percent-encodings in the URI ?
>

It is disabled by default, probably for the sake of security. See
ALLOW_ENCODED_SLASH property here:

http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html

Best regards,
Konstantin Kolinko

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


Mime
View raw message