note 102009 added to function.header

From: Date: Sat, 22 Jan 2011 19:47:13 +0000
Subject: note 102009 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-176012@lists.php.net to get a copy of this message
Setting a Location header "returns a REDIRECT (302) status code to the browser unless the 201 or a 3xx status code has already been set". If you are sending a response to a POST request, you might want to look at RFC 2616 sections 10.3.3 and 10.3.4. It is suggested that if you want the browser to immediately GET the resource in the Location header in this circumstance, you should use a 303 status code not the 302 (with the same link as hypertext in the body for very old browsers). This may have (rare) consequences as mentioned in bug 42969. ---- Server IP: 69.147.83.197 Probable Submitter: 93.96.136.249 ---- Manual Page -- http://www.php.net/manual/en/function.header.php Edit -- https://master.php.net/note/edit/102009 Del: integrated -- https://master.php.net/note/delete/102009/integrated Del: useless -- https://master.php.net/note/delete/102009/useless Del: bad code -- https://master.php.net/note/delete/102009/bad+code Del: spam -- https://master.php.net/note/delete/102009/spam Del: non-english -- https://master.php.net/note/delete/102009/non-english Del: in docs -- https://master.php.net/note/delete/102009/in+docs Del: other reasons-- https://master.php.net/note/delete/102009 Reject -- https://master.php.net/note/reject/102009 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#176012) next »