The valid characters are defined in RFC 7230 and RFC 3986
Posted ordinary
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The valid characters are defined in RFC 7230 and RFC 3986相关的知识,希望对你有一定的参考价值。
Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
at org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:189)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1000)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
最新的tomcat6,7,8增加了新特性,就是严格按照 RFC 3986规范进行访问解析,而 RFC 3986规范定义了Url中只允许包含英文字母(a-zA-Z)、数字(0-9)、-_.~4个特殊字符以及所有保留字符(RFC3986中指定了以下字符为保留字符:! * ’ ( ) ; : @ & = + $ , / ? # [ ])。传入的参数中有"{"不在RFC3986中的保留字段中,所以会报这个错。
或者更改tomcat版本,或者修改传递参数信息
以上是关于The valid characters are defined in RFC 7230 and RFC 3986的主要内容,如果未能解决你的问题,请参考以下文章
Springboot 报错 Invalid character found in the request target. The valid characters are defined in RFC
异常:Invalid character found in the request target. The valid characters are defined in RFC 3986
问题Invalid character found in the request target. The valid characters are defined in RFC 7230 and (代
Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC(
解决Invalid character found in the request target. The valid characters are defined in RFC 7230 and RF
解决Invalid character found in the request target. The valid characters are defined in RFC 7230 and RF