做的项目,ie总是无法访问,火狐、谷歌可以访问。
表单提交部分代码:
Error parsing HTTP request header
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:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
就在网上找方法,然后以为是链接问题,就用 javascript:location.href=encodeURI()不好使(这个方法在处理<a></a>的时候挺管用,见 http://blog.csdn.net/efine_dxq/article/details/60322055),一方面不能用,另一方面改代码太麻烦,要改很多地方。
然后就找啊找啊, 最后发现是tomcat版本不一致造成的。
我调试程序用的tomcat7.0.70,然后服务器上是7.0.73,我换成7.0.75也不行,最后又换成7.0.70就可以了。。。
表单提交部分代码:
<form method="post" action="有中文"></form>
tomcat 报错:
Error parsing HTTP request header
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:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
就在网上找方法,然后以为是链接问题,就用 javascript:location.href=encodeURI()不好使(这个方法在处理<a></a>的时候挺管用,见 http://blog.csdn.net/efine_dxq/article/details/60322055),一方面不能用,另一方面改代码太麻烦,要改很多地方。
然后就找啊找啊, 最后发现是tomcat版本不一致造成的。
我调试程序用的tomcat7.0.70,然后服务器上是7.0.73,我换成7.0.75也不行,最后又换成7.0.70就可以了。。。