Document http/protocol_version context option and handling of chunked transfer encoding

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@168147 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sara Golemon 2004-09-07 19:33:45 +00:00
parent 4bf92d5985
commit d4574cae83

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.42 $ -->
<!-- $Revision: 1.43 $ -->
<appendix id="wrappers">
<title>List of Supported Protocols/Wrappers</title>
<para>
@ -155,6 +155,15 @@ foreach(stream_get_meta_data($fp) as $response) {
Since PHP 4.3.0, the headers are available using
<function>stream_get_meta_data</function>.
</simpara>
<note>
<title>Transfer-Encoding: chunked</title>
<simpara>
As of PHP 5.1.0, if the remote server sends
<literal>Transfer-Encoding: chunked</literal> in the response
headers, PHP will automatically apply a chunked decode filter
to the content returned.
</simpara>
</note>
<simpara>
HTTP connections are read-only; you cannot write data or copy
files to an HTTP resource.
@ -239,6 +248,13 @@ foreach(stream_get_meta_data($fp) as $response) {
</entry>
<entry><constant>GET</constant></entry>
</row>
<row>
<entry><literal>protocol_version</literal> PHP &gt;= 5.1.0</entry>
<entry>HTTP protocol version (typically <literal>1.0</literal>
or <literal>1.1</literal> to send with the request line.
</entry>
<entry><literal>1.0</literal></entry>
</row>
<row>
<entry><literal>header</literal></entry>
<entry>Additional headers to be sent during request. Values