FAQ
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

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupphp-notes @
categoriesphp
postedDec 9, '10 at 6:38p
activeDec 10, '10 at 2:40p
posts2
users2
websitephp.net

2 users in discussion

Salathe: 1 post Sean: 1 post

People

Translate

site design / logo © 2018 Grokbase