svn: /phpdoc/es/trunk/language/context/ http.xml
| From: | Juan M Rivas | Date: | Fri, 10 Dec 2010 10:36:36 +0000 |
| Subject: | svn: /phpdoc/es/trunk/language/context/ http.xml | ||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-3927@lists.php.net to get a copy of this message | ||
juanmi Fri, 10 Dec 2010 10:36:36 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=306176
Log:
ARREGLADO UN ERROR QUE DABA
Changed paths:
U phpdoc/es/trunk/language/context/http.xml
Modified: phpdoc/es/trunk/language/context/http.xml
===================================================================
--- phpdoc/es/trunk/language/context/http.xml 2010-12-10 09:56:45 UTC (rev 306175)
+++ phpdoc/es/trunk/language/context/http.xml 2010-12-10 10:36:36 UTC (rev 306176)
@@ -102,7 +102,7 @@
(es decir
<literal>GET http://www.example.com/path/to/file.html
HTTP/1.0</literal>).
Pese a no ser una petición estándar, algunos servidores proxy
- podrían requerirlo así.
+ podrían requerirlo así
</para>
<para>
Por omisión es &false;.
@@ -321,6 +321,34 @@
opciones de contexto del transporte <literal>ssl://</literal>.
</simpara>
</note>
+<note>
+ <title>HTTP status line</title>
+ <simpara>
+ When this stream wrapper follows a redirect, the
+ <literal>wrapper_data</literal> returned by
+ <function>stream_get_meta_data</function> might not necessarily contain
+ the HTTP status line that actually applies to the content data at index
+ <literal>0</literal>.
+ </simpara>
+ <simpara>
+ <programlisting>
+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',
+ ...
+ </programlisting>
+ </simpara>
+ <simpara>
+ The first request returned a <literal>301</literal> (permanent redirect),
+ so the stream wrapper automatically followed the redirect to get a
+ <literal>200</literal> response (index = <literal>4</literal>).
+ </simpara>
+ </note>
</refsect1>
<refsect1 role="seealso">