Tomcat - RFC 7230 and RFC 3986

Asked

Viewed 423 times

0

I’m having a problem : Error Parsing HTTP request header My apache server Tomcat 8 is rejecting the requests for a system which I did an integration, the error is due to characters that are in the request, I was taking a look and saw that existed the :

 tomcat.util.http.parser.HttpParser. requestTargetAllow

I was unsuccessful using this attribute.

I have observed that he is considered obsolete and that he now has

relaxedPathChars and relaxedQueryChars 

used in the Tomcat Connector but I can’t find a functional example of them and I don’t know how to use them in the Nector, I tried them and I didn’t succeed. I need either a functional example of these attributes or some alternative, I need to accept this request anyway. I need a light!

  • 3

    Reverti for the edition of Bacco, depreciated is not translation of Deprecated, the approximate correct translation is «obsolete», «disuse» or «discouraged? (there are more). This is the mistake of a staff who ended up becoming something common, - leia: https://answall.com/q/178138/3635

1 answer

0


I was able to solve it this way: Edit the file Catalina.properties 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 

Now Tomcat has come to accept quietly.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.