direct the user to other pages of your site, use response. sendRedirect (response. the encodeURL (url) method preplanned session tracking (session tracking) is better than calling response. sendRedirect (url) is much better.
This status code can be exchanged with 301 sometimes. For example, if you mistakenly accessed the http://www.talentdigger.cn/home/link.php? Url = aG9zdC9 % 2 BdXNlcg % 3D % 3D (the path information is incomplete), some servers will return the 301 status code, and some will
code can sometimes be used with 301 substitutions. For example, if the browser mistakenly requests Http://host/~user (the trailing slash is missing), some servers return 301, and some return 302. Strictly speaking, we can only assume that the browser will automatically redirect only if the original request is get. See 307.
303-see other is similar to 301/302, except that if the original request is post,location, the redirect target document specifi
servers return 301, and some return 302. Strictly speaking, we can only assume that the browser will automatically redirect only if the original request is get. See 307. 303 See other is similar to 301/302, except that if the original request is the Post,location header the specified redirect target document should be fetched via get (HTTP 1.1 new). The 304 not modified client has a buffered document and issues a conditional request (typically provid
request.3** Opening (request redirection) indicates that a request is to be completed and further action is required. Typically, these status codes are used for redirection. 300 (multiple options) for requests, the server can perform a variety of operations. The server can select an action based on the requestor (user agent) or provide a list of actions for the requestor to select.301 (permanently moved) The requested page has been permanently moved to a new location. When the server returns th
, client can not reset view
205 Reset Content
Consistent with 204 response, but requires client reset response view
206 Partial content
A partial response, a breakpoint continuation, or a large file chunk pass is the response header
3.300 ~ 399 REDIRECT Status code
Status code
Description
Multiple Choices
The requested resource has a selection of feedback information, redirected based on the header meta-informat
One, HTTP status code:1XX: (Information status code), the accepted request is being processed.2XX: (Success status code), request normal processing completed.3xx: (redirect status code), additional action is required to complete the request.4XX: (Client Error status code), the server cannot process the request.5XX: (Service side error status code), server processing request error.Two, explain the difference between 301 and 302 Jump:301: Permanent redirection. Indicates that the requested resourc
. Because such redirects are temporary, the client should continue to send subsequent requests to the original address. This response is cacheable only if specified in Cache-control or expires. The new temporary URI should be returned in the location domain of the response. Unless this is a HEAD request, the response entity should contain a hyperlink to the new URI and a short description. If this is not a GET or HEAD request, then the browser disables automatic redirection unless the user
temporatily" and that the corresponding constant in HttpServletResponse is sc_moved_temporarily rather than sc_found.
When this status code appears, the browser can automatically access the new URL, so it is a useful status code. To do this, the servlet provides a dedicated method, namely Sendredirect. Use Response.sendredirect (URL) than using Response.setstatus (response. sc_moved_temporarily) and Response.setheader ("Location", url) better. This is because:
First, the code is more concise.
temporatily" and that the corresponding constant in HttpServletResponse is sc_moved_temporarily rather than sc_found.
When this status code appears, the browser can automatically access the new URL, so it is a useful status code. To do this, the servlet provides a dedicated method, namely Sendredirect. Use Response.sendredirect (URL) than using Response.setstatus (response. sc_moved_temporarily) and Response.setheader ("Location", url) better. This is because:
First, the code is more concise.
code appears, the browser can automatically access the new URL, so it is a useful status code.
Note that this status code can sometimes be replaced with 301. For example, if the browser incorrectly requests Http://host/~user (a trailing slash is missing), some servers return 301, and some return 302.
Strictly speaking, we can only assume that the browser will automatically redirect only if the original request is get. Please see 307.
303 The othe
access the new URL.
60W
Found
Similar to 301, but the new URL should be considered temporary instead of permanent. Note that the corresponding state information in the HTTP1.0 is "moved temporatily".When this status code appears, the browser can automatically access the new URL, so it is a useful status code.Note that this status code can sometimes be replaced with 301. For example, if the browser incorrectly requests Http://host/~user (a trailing slash is missing), some serv
clear form input
206 Partial Content Customer sent a GET request with a range header, and the server completed it
Multiple choices customer-requested documents can be found in multiple locations that are already listed in the returned document. If the server wants to make a preference, it should be indicated in the location answer header.
Moved permanently customer requested document elsewhere, the new URL is given in the location header, and the browser should automatically acce
. The status code indicates that the requested resource has been assigned a new URI and should later use the URI that the resource now refers to.
That is, if the URI of the resource is already saved as a bookmark, it should be re-saved by the URI of the Location header field prompt.
2) 302 FoundTemporary redirection. The status code indicates that the requested resource has been assigned a new URI and that the user (this time) will be able to access it using the new URI.
and 301 Mov Ed permanent
-branch computer Administrator B Corner/Wei Hong/Anti-money Laundering 303/Credit Synthesis 303/organizations/Xu Yue Kun/Chen Yu/WAN Xia/single loan 303/garden Road Sub-branch asset manager/Choshi/Chengyao/Garden Road Planning Contact/7 West Third Ring sub-branch computer Administrator B Corner/West Third ring sub-branch computer administrator a corner/Zhang Yong
1. What is prototype mode? (what)Prototype mode is a creation design pattern, it is a copy of the way to quickly create an object, there are two ways to copy: 1.) Shallow copy (pointer copy); 2.) deep copy (value copy); Creating a new object with prototype mode is more efficient.what are deep and shallow copies? (what)A deep copy is also called a value copy, and the newly created object will open up new space in memory and copy the value of the copied object; a shallow copy is also called a poin
customer requested documents can be found in multiple locations that have been listed in the returned document. If the server wants to make a preference, it should be indicated in the location answer header.
301 Moved Permanently The document requested by the customer elsewhere, the new URL is given in the location header, and the browser should automatically access the new URL.
302 Found is similar to 301, but the new URL should be treated as a temporary replacement, not a permanent.
1. POST is used to send data to the server, often used for form data submission;PUT is used to store data in a resource (such as a file) on a server;2.302 303 307 Status Code differencesThey are both redirected (temporary redirect P.s 301 for permanent redirection) and have subtle differences,http1.0: Only 302 yards, no 303 and 307 status codes;http1.1:302,303,307302:http/1.0 and http/1.1 behave the same (u
useful status code. Note that this status code sometimescan be used with 301 replacement. For example, if the browser mistakenly requests http://host/~user (a trailing slash is missing), some servers return 301, and some return 302. Strictly speaking, we can only assume that the browser will automatically redirect only if the original request is get. See 307. · 303-see other is similar to 301/302, except that if the original request is post,location,
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.