I am using Tomcat 8. In one case I need to handle external request coming from external source where the request has a parameters where it is separated by |.
|
Since Tomcat 7.0.76, 8.0.42, 8.5.12 you can define property requestTargetAllow to allow forbiden characters.
Add this line in your catalina.properties
catalina.properties
tomcat.util.http.parser.HttpParser.requestTargetAllow=|{}