Tomcat 8 is not able to handle get request with '|' in query parameters?

前端 未结 7 555
半阙折子戏
半阙折子戏 2020-11-27 04:19

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 |.

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-27 04:36

    The parameter tomcat.util.http.parser.HttpParser.requestTargetAllow is deprecated since Tomcat 8.5: tomcat official doc.

    You can use relaxedQueryChars / relaxedPathChars in the connectors definition to allow these chars: tomcat official doc.

提交回复
热议问题