In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
What is the idea of solving the Nginx 400 Bad Request problem? aiming at this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
400 Bad Request is a HTTP error status code. HTTP/1.1 's definition of 400 Bad Request is mainly as follows: 1. The semantics are incorrect and the current request cannot be understood by the server. The client should not submit this request repeatedly unless it is modified. 2. The request parameters are incorrect. 1. Scenarios that generally cause 400 exceptions
Generally speaking, using Nginx will report 400 Bad Request in the following scenarios:
two。 Special problem scenario 1: URLConnection initiates HTTPS request through proxy 400exception
We have a system A that communicates with system B using the HTTPS protocol, and there are a large number of 400th errors thrown at the nginx proxy layer of system B. After our investigation, there is no case that the header of the above request is too large or empty. So what is the cause of the 400 problem? We visited a large number of foreign technology websites according to the symptoms of the problem, and finally located that this is a bug of JDK:
JDK-6687282: URLConnection for HTTPS connection through Proxy w/ Digest Authentication gives 400 Bad Request
The JDK version of system An is older than java version "1.6.0x05" and uses JDK native "CONNECT verisign.com:443 HTTP/1.1".
1.sun.net.www.protocol.http.digestauthentication
two。 Use Apache HttpClient instead of URLConnection
The answer to the question about how to solve the Nginx Bad Request problem is shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.
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.