specification, the browser even if the original request is post will automatically redirect, resulting in the specification and implementation of two semantics, resulting in a number of issues, such as 302 hijacking, so in the HTTP 1.1 The specification of 302 is refined into 303 and 307, in the hope of eliminating ambiguity.Supplement: 302 hijacking--a station by redirecting to B station Resources Xxoo,a station actually did nothing but a friendly d
, then the browser disables automatic redirection unless the user confirms it, because the requested condition may vary. Note: Although the RFC 1945 and RFC 2068 specifications do not allow the client to change the method of the request during redirection, many existing browsers treat the 302 response as a 303 response, and use GET to access the URI specified in the location, ignoring the method originally requested. Status Codes
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 confirms it, because the requested condition may vary. Note: Although the RFC 1945 and RFC 2068 specifications do not allow the client to change the method of the reque
response, the next redirect request becomes a Get method.302 FoundThe requested resource is now temporarily responding to requests from different URIs. 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 hyperli
parent class as a parameter, so that this method has the ability to call all sub-classes to the same method for Polymorphism: reduced redundancy, instead of writing a Method */-(void) breed :( animal *) animal {[animal eat];} @ end
4. Main Function
Int main (INT argc, const char * argv []) {@ autoreleasepool {// simulate a breeder breeding animal breeder * breeder = [[breeder alloc] init]; nslog (@ "======= non-polymorphism call ======"); // you need to write a method for each animal, c
, many existing browsers treat the 302 response as a 303 response and use get to access the URI specified in the location, ignoring the method originally requested. Status Codes 303 and 307 are added to clarify how the server expects the client to react. The corresponding status information in HTTP1.0 is Moved temporatily. When the status code appears, the browser can automatically access the new URL, so i
also be provided:Support for type conversion of form parameters using Conversionservice instancesSupport for formatting data types using @NumberFormat annotation, @DateTimeFormat annotationsSupport for JSR 303 validation of JavaBean instances using @Valid annotationsSupport for using @RequestBody and @ResponseBody annotations@InitBinderThe Webdatabinder object can be initialized by a method identified by the @InitBinder. Webdatabinder is a subclass o
In the previous chapter, we used an enumerator to access and return the key values in the dictionary. Now we can use Quick enumeration to find the corresponding key values.
Methods involved:
Objectforkey:This method means to return a value to the corresponding key. The following two methods are used. For the first time, this method is not used in the loop. The value @ "1 ", the corresponding value is @ "one ".
PS: Here, we find the key, which indicates that the value is found.
The follow
as follows:
#import
When the above code is compiled and executed, it produces the following result:
2013-09-22 21:20:09.842 Inheritance[349:303] Base class Person Object2013-09-22 21:20:09.844 Inheritance[349:303] Name: Raj2013-09-22 21:20:09.844 Inheritance[349:303] Age: 52013-09-22 21:20:09.845 Inheritance[349:303]
HTTP status Code
editing
The HTTP status code is a 3-bit numeric code that represents the HTTP response status of the Web server. It is defined by the RFC 2616 specification and is extended by RFC 2518, RFC 2817, RFC 2295, RFC 2774, RFC 4918, and other specifications.
Chinese name
HTTP status Code
Foreign names
HTTP Status Code
Specification definition
RFC 2616
Message-Side
(Request-uri) for future requests. The response is cached only when the Cache-control or Expires header field is described.The temporary URI should be provided by the location field in the response. Unless the request method is head, the responding entity should contain a short hypertext comment with a hyperlink to the new URI.If the request method that receives a 302 status in response to a request is not head or get, then the user agent cannot automatically redirect the request unless the use
. Content cannot be cached by the browser. The intention is to redirect the URL that may change, but because of being abused by SEO, may be condemned by the search engine as cheating.303 behavior and 3,021 like, new behavior the user handles non-get, head requests, but the new behavior is almost no, almost unused. The server returns this code when the requester should make a separate GET request for a different location to retrieve the response. For a
Project case: Customer deleted delete important data, no backup, customer contact me, request to restore the corresponding data. This time through the experimental way to reproduce the customer site. Backup above everything, backup first, then operateTo create a table:
CREATE TABLE King (age number,name varchar2 (20));
Insert INTO King values ("Rick");
Insert into King values (' Wuzy ');
Commit
Select Dbms_rowid.rowid_relative_fno (ROWID) rel_fno,dbms_rowid.rowid_block_number (ROWID)
The phpdownload. php implementation code jumps to the download file (response. redirect ). Jump to the core code implementation. The copy code is as follows: if (isset ($ link) {Header (HTTP1.1303SeeOther); Header (Location: $ link); exit ;}the following is a description of a foreign article. Jump to the core code implementation.
The code is as follows:
If (isset ($ link )){Header ("HTTP/1.1 303 See Other ");Header ("Location: $ link ");Exit;}
The
This is a creation in
Article, where the information may have evolved or changed.
The HTTP specification defines a return code to 3xx represent the client that needs to do some extra work to complete the request, mostly 3xx for forwarding (redirect).
A detailed description of the status code can refer to the specification or Wikipedia, Wikipedia, the following is a short introduction to the code.
Multiple Choices: Returns multiple resources to choose from
301 Moved Permanently: The requ
Jump core code implementation.
Copy CodeThe code is as follows:
if (Isset ($link))
{
Header ("http/1.1 303 See other");
Header ("Location: $link");
Exit
}
Here is a description of an article abroad.
Hey Chris:
On Wed, Jan, 2005 at 12:28:19pm-0500, Csnyder wrote:
>
>
>//Process form
> ...
>//Redirect to results page
> Header (' http/1.1 303 see other ');
> Header (' Location:result.html ');
> Exit (' For
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 confirms it, because the requested condition may vary. Note: Although the
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.