Tomcat - RFC 7230 and RFC 3986

0

I have a problem with: Error parsing HTTP request header My apache tomcat 8 server is rejecting the requests of a system which I did an integration, the error is by the character account that is in the request, was taking a look and I saw that there was:

 tomcat.util.http.parser.HttpParser. requestTargetAllow

I was not successful using this attribute.

I noticed that it is considered obsolete and that it now has

relaxedPathChars and relaxedQueryChars 

used in the tomcat Connector but I can not find a functional example of them and I do not know how to use them in the connector, I tried to use them and I did not succeed. I need either a functional example of these attributes or some alternative, I need to accept this request anyway. I need a light!

    
asked by anonymous 10.05.2018 / 15:43

1 answer

0

I was able to solve it like this: Edit the catalina.properties file that is inside the conf / tomcat folder. At the end of the file add the following lines:

tomcat.util.http.parser.HttpParser.requestTargetAllow=|{} 

org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true 

Tomcat now accepts quietly.

    
10.05.2018 / 20:13