Note that there are some explanatory texts on larger screens.

plurals
  1. POhow http permanent and temporary redirects work in form submission scenario
    text
    copied!<p>lets say i have a form in www.example.com/registration.php and the form submits to www.example.com/process.php and redirects to www.example.com/welcome.php. so when i click submit a post response is generated and sent to process.php. from there a redirect code is sent lets say 301 (permanentit) as a response with location www.example.com/welcome.php. My questions 1)in wikipedia it says </p> <blockquote> <p>If the 301(or same case in 302,for 303,307) status code is received in response to a request of any type other than GET or HEAD, the client must ask the user before redirecting</p> </blockquote> <p>so if i submit i should be asked for confirmation but this never happens it directly goes to welcome.php page</p> <p>2)whats the difference between 301-permanent and 302(also 303, 307) -temporary redirect when used in form submission scenario explained above </p> <p>3)i cant really get it from the following</p> <blockquote> <blockquote> <p>The HTTP response status code 301 Moved Permanently is used for permanent redirection, meaning current links or records using the URL that the 301 Moved Permanently response is received for should be updated to the new URL provided in the Location field of the response. This status code should be used with the location header. RFC 2616 states that: If a client has link-editing capabilities, it should update all references to the Request URI.</p> </blockquote> </blockquote> <p>what is it with updating all links to new uri is to do with browsers(user agents). whether it is meant only for search engine indexing</p> <p>and finally </p> <p>search engine doesn't index temporary redirects and permanent redirect replaces the current request url to new url from redirect response. whether search engine also takes into account the above submission and if i give a 301 redirect response in process.php to redirect to welcome.php then registration.php will be replaced by welcome.php in search engine index database</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload