Learn about 400 bad request header or cookie large, we have the largest and most updated 400 bad request header or cookie large information on alibabacloud.com
The DJANGO+NGINX+UWSGI deployed site visited a URL with a bad request error, and did not experience this problem when using a Django-brought version of the Web server. The initial judgment is Nginx or UWSGI configuration problem.Online is because the request header is too large
of one buffer, or the 414 (Request-uri Too Large) error is returned to the client. A Request header field cannot exceed the size of one buffer as well, or the the "Bad Request" error is returned to the CLI Ent. Buffers is allocat
Fortunately, there is a way to solve this problem in nginx:In nginx. conf, increase the values of client_header_buffer_size and large_client_header_buffers to alleviate this problem.Client_header_buffer_size: The default value is 1 k. Therefore, if the header is smaller than 1 k, no problem will occur.Large_client_header_buffers: this command is used to set the size of the Header buffer for client requests.
400 Bad Request The plain HTTP request was sent to HTTPS port in Nginx upstream payment443 {server 10.11.157.111: 443 backup; server 10.11.157.222: 443 weight = 1;} www.2cto.com Location ~ /Payment/{ssi on; proxy_pass http: // payment443; include/opt/apps/nginx/conf/proxy. conf;} Because I configured the redirection to
nginx:400 Bad Request | The plain HTTP request is sent to HTTPS portNginx version nginx/1.12.2Problem 400 error using SSL link in Nginx environmentThe Nginx configuration file is as follows:Access to HTTPS is normal, but the following error occurs when accessing directly:$
: - Fp.write (Res.read ()) -With open ("./savepath.txt","a") as FH: inFh.write (file_name+"\ n")When grabbing a picture with urllib2, part of the request reports HTTP Error 400:bad requestReference: Https://stackoverflow.com/questions/8840303/urllib2-http-error-400-bad-
Httpd.conf to DocumentRoot, too.
LoadModule Php5_module
AddType application/x-httpd-php. php
Phpinidir and so on, but do not know why access to PHP files or a bad Request (400)
, is there anyone who can answer what this is for?
Reply to discussion (solution)
If the configuration file is not a problem, it will be the browser cache problemor somethi
Possible cause: Multipartresolver Not configured correctlySee the solution:file Upload ID must be multipartresolver, or error http Status 400–bad Request - BeanID= "Multipartresolver"class= "Org.springframework.web.multipart.commons.CommonsMultipartResolver"> Propertyname= "Defaultencoding"value= "UTF-8"/> 5M - Propertyname= "Maxuploadsi
Html> http://qiuren.blogbus.com/logs/37117725.html
Most of the time, you need to customize the release package when debugging the program. The Firefox plug-in can be used in normal post submission, such as Tamper Data.
However, this tool does not support uploading images or files.
At this time, it is more common to use winsock expert to capture packets, save the packet as txt, modify the txt file, and then submit the file with nc.
Before the article, I often encounter this echo when sendin
The reason is that jersey built-in converters can only do simple type conversions such as:The client must first submit a string;String----> String/long/boolean These basic can be converted, but if you write as follows:String---->date type, then jersey internal error, reported the illegal request message, can not be debugged (took 2 days to understand, do not repeat again)Can be modified to a string, and then below if the use of the place under convers
This article from: http://bbs.51aspx.com/showtopic-42348.html
The remote server returns an unexpected 400 Bad Request. The reason is: the amount of data transmitted is too large.Solution:First, in the client configuration file:1. Modify the maximum data transfer quota on the node
OpenTimeout = "00:03:00" receiveTimeout = "00:10:00" sendTimeout = "00:0
When you are usingMicrosoft. Sharepoint. Client. filecollection. AddMethod orMicrosoft. Sharepoint. Client. file. savebinaryWhen creating or modifying a file in the SharePoint library, you may encounter the error "the remote server returned an error: (400) Bad request. To solve this problem, you need to modify the default maximum Message Size of SharePoint.
Open
The nginx concat module configuration page returns the 400 bad request, nginxconcat
This problem was not found in nginx of version 1.4.x, but encountered this problem in version 1.5.x.
In the new version, Nginx uses the standard MIME-Type: application/javascript. In the current code of the nginx_concat_module module, the type of application/x-javascript is writ
because the connection is turned off, the error message is not sent to the client, which results in an error recorded in the log file, and nothing is seen in the grab packet analysis.
Testto verify the results of the above analysis is very simple, open the command line Cmd.exe, in which the input Telnet ServerIP 80, waiting for the connection to be successful after the direct switch off cmd, then to view the Nginx log file in a more than a 400 error
/dec/2010:11:00:16 +0800] "-" 400 0 "-" "-"219.243.95.197--[15/dec/2010:11:00:16 +0800] "-" 400 0 "-" "-"116.236.228.180--[15/dec/2010:11:00:16 +0800] "-" 400 0 "-" "-"116.236.228.180--[15/dec/2010:11:00:16 +0800] "-" 400 0 "-" "-"
A lot of articles on the Internet that is the HTTP head/
Requirement: The front end of the company needs to pass the token after login to the backstage through the way of cookie. (including the ability to modify cookies).Post the Code:We are through the MUI Ajax request, carefully read the text of the request in the head, found backstage callback a set-cookie. Get saved by D
Assume that only one COOKIE is saved after a website is logged on and is considered as logged on. Then, when I use FIREBUG for a request, I can see that the COOKIE is carried in the request header, but I can't figure out where to put the
1. When a URL is requested from an HTTP server, the browser compares the URL with all Cookies stored on the client host, the line that matches the cookie that contains the name/value pair will be included in the HTTP request header.
The format of the request header line is:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.