note 101320 added to context.http

From: Date: Thu, 09 Dec 2010 18:45:19 +0000
Subject: note 101320 added to context.http
Groups: php.notes 
Request: Send a blank email to php-notes+get-174755@lists.php.net to get a copy of this message
Note that the wrapper_data might not necessarily contain the HTTP status line that actually applies to the content data at index 0. array ( 'wrapper_data' => array ( 0 => 'HTTP/1.0 301 Moved Permantenly', 1 => 'Cache-Control: no-cache', 2 => 'Connection: close', 3 => 'Location: http://example.com/foo.jpg', 4 => 'HTTP/1.1 200 OK', 5 => 'Date: Thu, 09 Dec 2010 18:15:27 GMT', 6 => 'Server: VoxCAST', … The first request was 301, so the stream wrapper automatically followed the redirect to get a 200 (index = 4). This got me, it might get you, too. S ---- Server IP: 69.147.83.197 Probable Submitter: 173.178.240.142 ---- Manual Page -- http://www.php.net/manual/en/context.http.php Edit -- https://master.php.net/note/edit/101320 Del: integrated -- https://master.php.net/note/delete/101320/integrated Del: useless -- https://master.php.net/note/delete/101320/useless Del: bad code -- https://master.php.net/note/delete/101320/bad+code Del: spam -- https://master.php.net/note/delete/101320/spam Del: non-english -- https://master.php.net/note/delete/101320/non-english Del: in docs -- https://master.php.net/note/delete/101320/in+docs Del: other reasons-- https://master.php.net/note/delete/101320 Reject -- https://master.php.net/note/reject/101320 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#174755) next »