Discover 400 bad request request header or cookie large, include the articles, news, trends, analysis and practical advice about 400 bad request request header or cookie large on alibabacloud.com
always knows its host name and corresponding port. To avoid redundancy, the browser only needs to send the part of the URI other than the host name. After the proxy appears, some Uris are completely available, and the proxy server cannot know the host on which the user wants to access the URI. For this reason, HTTP/1.0 requires the browser to send a complete URI for the proxy request, that is, the browser must be told in a standard.
After the proxy i
Generally, when we see a Bad Request (Invalid Hostname) error on the website, we will say that it is iis. If there is a problem with apache, the solution to this problem in iis is probably: IIS> default website> Properties> website> IP Address: (all unallocated)> advanced, there is a host header value, or you can directly restart iis to solve the problem.
The we
fact, The server application obtains this information from the User-agent request header domain user-agent The request header domain allows the client to tell the server about its operating system, browser, and other properties.For example: user-agent:mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; trident/4.0; CIB
Today, when the project was suddenly reported a bad request error, the backstage did not have any problems.First I looked at the log log does not receive any parameters, you can determine that the request is not sent out, so it should be the foreground data submission problem.Then I saw some tips from some netizens:1. The Submission form data type does not match
name of the host HTTP serverThe default port for the port# HTTP server is 80, in which case the lower number can be omitted. If you use a different port, you must specify, for example, http://www.cnblogs.com:8080/Path to access resourceQuery-string data sent to the HTTP serveranchor-AnchorAn example of a URLHttp://www.mywebsite.com/sj/test/test.aspx?name=sviergnx=true#stuffSchema: httpHost: www.mywebsite.comPath: /sj/test/test.aspxQuery String
Development tools: VS2010, Development components: WebService, operating Environment: WindowsToday, a colleague in the billing interface debugging, found a very strange problem: the interface in the home environment testing, everything is normal, but after deployment to the current network environment, successive calls to the interface will be error: The remote server returned an errors: (400) Bad
Site access error Bad Request (Invalid Hostname), as shown below:
Analysis:
"Bad Request (Invalid Hostname)" is the literal translation of "wrong requests (invalid hostname)", a IIS6 error hint. That is, the domain name has been resolved, but cannot find the host corresponding to the domain name.
So you can determ
output characters to the client.
Void setcontentlength (INT Len) set the Response Header Length
Void setcontenttype (string type) sets the MIME type of the response
Sendredirect (Java. Lang. string location) Redirects client requests
2 cookie
Cookies are the data (usually encrypted) stored on the user's local terminal by websites to identify users and track sessions ).2.1 use of cookies
Create
There are some elements in the configuration component of Test plan that are related to HTTP properties: HTTP Cache manager, HTTP Authorization Manager, HTTP Cookie Manager, HTTP Header manager, HTTP Request defaults etc, what are these?JMeter is not a browser, so its behavior is not exactly the same as the browser. The HTTP property manager provided by these jme
specified keep-alive time.Instance:keep-alive:300 One , CookiesDescriptionWhen an HTTP request is sent, all cookie values stored under that request domain are sent to the Web server. A , RefererDescriptionContains a URL where the user accesses the currently requested page from the page represented by the URLResponses part
There are some elements in the configuration component of Test plan that are related to HTTP properties: HTTP Cache manager, HTTP Authorization Manager, HTTP Cookie Manager, HTTP Header manager, HTTP Request defaults etc, what are these?JMeter is not a browser, so its behavior is not exactly the same as the browser. The HTTP property manager provided by these j
) "application/x-www-form-urlencoded": the type of encoding used when the form data is submitted to the server, the default value is "application/x-www-form-urlencoded". However, this encoding is inefficient when sending large amounts of text to the server, including text or binary data that contains non-ASCII characters.(2) "Multipart/form-data": When the file is uploaded, the type of encoding used should be "Multipart/form-data", which can both send
Packet Capture finds that there are two cookie values in the request header when the access is successful, that is, two set-cookies in the header are returned during the first request. The previous code is httpurlconnection. getheaderfield ("Set-
able to provide more than one language version.Authorization: Authorization information, which typically occurs in an answer to the Www–authenticate header sent to the server.Connection: Indicates whether a persistent connection is required. If the servlet sees the value here as "keep–alive", or sees the request using an HTTP 1.1 (HTTP 1.1 is persistent by default), it can take advantage of the persistent
wishes to use when the server is able to provide more than one language version.Authorization: Authorization information, which typically occurs in an answer to the Www-authenticate header sent to the server.Connection: Indicates whether a persistent connection is required. If the servlet sees the value here as "keep-alive", or sees the request using an HTTP 1.1 (HTTP 1.1 is persistent by default), it can
here is "Keep-Alive", or the request uses HTTP 1.1 (HTTP 1.1 performs a persistent connection by default), it can take advantage of the advantages of persistent connections, when a page contains multiple elements (such as an Applet or image), the download time is significantly reduced. To achieve this, the Servlet needs to send a Content-Length header in the response. The simplest method is to write the Co
Suppose a website only stores a cookie when it is logged in, and then I use the Firebug request to see that he carried the cookie in the request, but I took the tool to simulate where the cookie was placed on the request head. Isn
client to try again after a specified time if the entity is temporarily undesirable
retry-after:120
Server
Web Server Software Name
server:apache/1.3.27 (Unix) (Red-hat/linux)
Set-cookie
Set HTTP Cookies
Set-cookie:userid=johndoe; max-age=3600; Version=1
Trailer
Indicates that the header domain is present at the end of the chunked tran
available, should not AH!I have tried to use postman to request, there is a result (it seems that the analog HTTP request postman is better than fiddler)So why is my code not working?Thought for a while, I know the problem must be on the cookie;It is best to use reflection to assign a value to the cookie so that it 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.