In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors... java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are
Post the abnormal information first:
The problem is tomcat http request parsing error, the online solution is mainly to modify Tomcat server.xml, in the configuration of maxHttpHeaderSize configuration.
If you adjust maxHttpHeaderSize or can't solve it, you need to set the data format of the front-end page, and you need to set the method property to POST.
But that didn't work for my code.
-----------------------------------------------------------------------------------------------------------------
After analysis, it was found that this problem is related to the request parameters. This error occurs when the URL is accessed in a browser with special characters such as parenthesis colons. For example: index.do? {id:123}, and in some cases, even without braces, as long as there is "?+ Parameter "will report this exception
For example, the problem encountered in this article is when using the pop-up form feature of Layer.js
(* code hidden in code, the same below)
JS Code:
+ View Code
Java code:
+ View Code
The original idea is to get the url address of the subpage through background transfer, and then use the layer.js component to realize the page pointed to by the url as a subpage pop-up. Because there is a band in the url? So the exception at the beginning of this article occurred. Therefore, change the url form, remove the following parameters, and transfer them to the parent-child interface in other ways.
This raises another question: How do I pass parameters between the parent and child interfaces when using layer.open()?
Solution: directly on the code
Parent JS:
+ View Code
Child page js: Add methods to get parent page data
1234function getParentData(para){ cmdUuid=para.cmdUuid; projectId=para.projectId;}
key is
+ View Code
"success" defines a fallback function that is executed after the child page has finished loading,
+ View Code
+ View Code
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.