Here's the error when I try to send a GET request with a URL in my java web application: my local machine url looks like this http: // localhost: 8080 / test? Param1 = 1 | 2 & param2 = 3343434
February 20, 2017 4:51:19 org.apache.coyote.http11.AbstractHttp11 INFO processor process: an error occurred while analyzing the HTTP request header Note: further occurrences of HTTP header analysis errors will be logged at the DEBUG level. java.lang.IllegalArgumentException: Invalid character found in the request target. Valid characters are defined in RFC 7230 and RFC 3986 at org.apache.coyote.http11.AbstractNioInputBuffer.parseRequestLine (AbstractNioInputBuffer.java:283) at org.apache.coyote.http11.AbstractHttp11Processor.process (AbstractHttp11Per101 atorg11porg11porg11porg1. apache.coyote.AbstractProtocol $ AbstractConnectionHandler.process (AbstractProtocol.java:684) at org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun (NioEndpoint.java:1524) at org.apache.tomcat.util.net. NioEndpoint $ SocketProcessor.run (NioEndpoint.java:1480) in java.util.concurrent.ThreadPoolExecutor.runWorker (Unknown source) in java.util.concurrent.ThreadPoolExecutor $ Worker.run (Unknown source) at org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run (TaskThread.java:61) in java.lang.Thread.run (Unknown source)
I would like to ask if this problem can be fixed without changing the version of Apache Tomcat or making changes to my existing code. I was wondering if this Apache Tomcat configuration file can disable or circumvent this check?
source
share