note 101320 deleted from context.http by salathe

From: Date: Fri, 10 Dec 2010 14:47:41 +0000
Subject: note 101320 deleted from context.http by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-174770@lists.php.net to get a copy of this message
Note Submitter: sean at php dot net ---- 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

« previous php.notes (#174770) next »