cvs: phpdoc-de /language/context curl.xml http.xml socket.xml ssl.xml
| From: | Hartmut Holzgraefe | Date: | Sat, 18 Oct 2008 11:14:03 +0000 |
| Subject: | cvs: phpdoc-de /language/context curl.xml http.xml socket.xml ssl.xml | ||
| Groups: | php.doc.de | ||
| Request: | Send a blank email to doc-de+get-2839@lists.php.net to get a copy of this message | ||
hholzgra Sat Oct 18 11:14:03 2008 UTC
Added files:
/phpdoc-de/language/context curl.xml http.xml socket.xml ssl.xml
Log:
new translations work in progres
http://cvs.php.net/viewvc.cgi/phpdoc-de/language/context/curl.xml?view=markup&rev=1.1 Index: phpdoc-de/language/context/curl.xml +++ phpdoc-de/language/context/curl.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: hholzgra Status: working --> <refentry xml:id="context.curl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" role="noversion"> <refnamediv> <refname>CURL context options</refname> <refpurpose>CURL context option listing</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <para> CURL context options are available when the <link linkend="intro.curl">CURL</link> extension was compiled using the <option>--with-curlwrappers</option> configure option. </para> </refsect1> <refsect1 role="options"><!-- {{{ --> &reftitle.options; <para> <variablelist> <varlistentry xml:id="context.curl.method"> <term> <parameter>method</parameter> <type>string</type> </term> <listitem> <para> <constant>GET</constant>, <constant>POST</constant>, or any other HTTP method supported by the remote server. </para> <para> Defaults to <constant>GET</constant>. </para> </listitem> </varlistentry> <varlistentry xml:id="context.curl.header"> <term> <parameter>header</parameter> <type>string</type> </term> <listitem> <para> Additional headers to be sent during request. Values in this option will override other values (such as <literal>User-agent:</literal>, <literal>Host:</literal>, and <literal>Authentication:</literal>). </para> </listitem> </varlistentry> <varlistentry xml:id="context.curl.user-agent"> <term> <parameter>user_agent</parameter> <type>string</type> </term> <listitem> <para> Value to send with User-Agent: header. </para> <para> By default the <link linkend="ini.user-agent">user_agent</link> &php.ini; setting is used. </para> </listitem> </varlistentry> <varlistentry xml:id="context.curl.content"> <term> <parameter>content</parameter> <type>string</type> </term> <listitem> <para> Additional data to be sent after the headers. This option is not used for <constant>GET</constant> or <constant>HEAD</constant> requests. </para> </listitem> </varlistentry> <varlistentry xml:id="context.curl.proxy"> <term> <parameter>proxy</parameter> <type>string</type> </term> <listitem> <para> URI specifying address of proxy server. (e.g. <literal>tcp://proxy.example.com:5100</literal>). </para> </listitem> </varlistentry> <varlistentry xml:id="context.curl.max-redirects"> <term> <parameter>max_redirects</parameter> <type>integer</type> </term> <listitem> <para> The max number of redirects to follow. Value <literal>1</literal> or less means that no redirects are followed. </para> <para> Defaults to <literal>20</literal>. </para> </listitem> </varlistentry> <varlistentry xml:id="context.curl.curl-verify-ssl-host"> <term> <parameter>curl_verify_ssl_host</parameter> <type>boolean</type> </term> <listitem> <para> Verify the host. </para> <para> Defaults to &false; </para> <note> <para> This option is available for both the http and ftp protocol wrappers. </para> </note> </listitem> </varlistentry> <varlistentry xml:id="context.curl.curl-verify-ssl-peer"> <term> <parameter>curl_verify_ssl_peer</parameter> <type>boolean</type> </term> <listitem> <para> Require verification of SSL certificate used. </para> <para> Defaults to &false; </para> <note> <para> This option is available for both the http and ftp protocol wrappers. </para> </note> </listitem> </varlistentry> </variablelist> </para> </refsect1><!-- }}} --> <refsect1 role="examples"><!-- {{{ --> &reftitle.examples; <para> <example xml:id="context.curl.example-post"><!-- {{{ --> <title>Fetch a page and send POST data</title> <programlisting role="php"> <![CDATA[ <?php $postdata = http_build_query( array( 'var1' => 'some content', 'var2' => 'doh' ) ); $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata ) ); $context = stream_context_create($opts); $result = file_get_contents('http://example.com/submit.php', false, $context); ?> ]]> </programlisting> </example><!-- }}} --> </para> </refsect1><!-- }}} --> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="context.socket" /></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc-de/language/context/http.xml?view=markup&rev=1.1 Index: phpdoc-de/language/context/http.xml +++ phpdoc-de/language/context/http.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: hholzgra Status: working --> <refentry xml:id="context.http" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" role="noversion"> <refnamediv> <refname>HTTP context options</refname> <refpurpose>HTTP context option listing</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <para> Context options for <literal>http://</literal> and <literal>https://</literal> transports. </para> </refsect1> <refsect1 role="options"><!-- {{{ --> &reftitle.options; <para> <variablelist> <varlistentry xml:id="context.http.method"> <term> <parameter>method</parameter> <type>string</type> </term> <listitem> <para> <constant>GET</constant>, <constant>POST</constant>, or any other HTTP method supported by the remote server. </para> <para> Defaults to <constant>GET</constant>. </para> </listitem> </varlistentry> <varlistentry xml:id="context.http.header"> <term> <parameter>header</parameter> <type>string</type> </term> <listitem> <para> Additional headers to be sent during request. Values in this option will override other values (such as <literal>User-agent:</literal>, <literal>Host:</literal>, and <literal>Authentication:</literal>). </para> </listitem> </varlistentry> <varlistentry xml:id="context.http.user-agent"> <term> <parameter>user_agent</parameter> <type>string</type> </term> <listitem> <para> Value to send with User-Agent: header. This value will only be used if user-agent is <emphasis>not</emphasis> specified in the <literal>header</literal> context option above. </para> <para> By default the <link linkend="ini.user-agent">user_agent</link> &php.ini; setting is used. </para> </listitem> </varlistentry> <varlistentry xml:id="context.http.content"> <term> <parameter>content</parameter> <type>string</type> </term> <listitem> <para> Additional data to be sent after the headers. Typically used with POST or PUT requests. </para> </listitem> </varlistentry> <varlistentry xml:id="context.http.proxy"> <term> <parameter>proxy</parameter> <type>string</type> </term> <listitem> <para> URI specifying address of proxy server. (e.g. <literal>tcp://proxy.example.com:5100</literal>). </para> </listitem> </varlistentry> <varlistentry xml:id="context.http.request-fulluri"> <term> <parameter>request_fulluri</parameter> <type>boolean</type> </term> <listitem> <para> When set to &true;, the entire URI will be used when constructing the request. (i.e. <literal>GET http://www.example.com/path/to/file.html HTTP/1.0</literal>). While this is a non-standard request format, some proxy servers require it. </para> <para> Defaults to &false;. </para> </listitem> </varlistentry> <varlistentry xml:id="context.http.max-redirects"> <term> <parameter>max_redirects</parameter> <type>integer</type> </term> <listitem> <para> The max number of redirects to follow. Value <literal>1</literal> or less means that no redirects are followed. </para> <para> Defaults to <literal>20</literal>. </para> </listitem> </varlistentry> <varlistentry xml:id="context.http.protocol-version"> <term> <parameter>protocol_version</parameter> <type>float</type> </term> <listitem> <para> HTTP protocol version. </para> <para> Defaults to <literal>1.0</literal>. </para> </listitem> </varlistentry> <varlistentry xml:id="context.http.timeout"> <term> <parameter>timeout</parameter> <type>float</type> </term> <listitem> <para> Read timeout in seconds, specified by a <type>float</type> (e.g. <literal>10.5</literal>). </para> <para> By default the <link linkend="ini.default-socket-timeout">default_socket_timeout</link> &php.ini; setting is used. </para> </listitem> </varlistentry> <varlistentry xml:id="context.http.ignore-errors"> <term> <parameter>ignore_errors</parameter> <type>boolean</type> </term> <listitem> <para> Fetch the content even on failure status codes. </para> <para> Defaults to &false; </para> </listitem> </varlistentry> </variablelist> </para> </refsect1><!-- }}} --> <refsect1 role="changelog"><!-- {{{ --> &reftitle.changelog; <para> <informaltable> <tgroup cols="2"> <thead> <row> <entry>&Version;</entry> <entry>&Description;</entry> </row> </thead> <tbody> <row> <entry>5.3.0</entry> <entry> Added <parameter>ignore_errors</parameter>. </entry> </row> <row> <entry>5.2.1</entry> <entry> Added <parameter>timeout</parameter>. </entry> </row> <row> <entry>5.1.0</entry> <entry> Added HTTPS proxying through HTTP proxies. </entry> <entry>5.1.0</entry> <entry> Added <parameter>max_redirects</parameter>. </entry> </row> <row> <entry>5.1.0</entry> <entry> Added <parameter>protocol_version</parameter>. </entry> </row> </tbody> </tgroup> </informaltable> </para> </refsect1><!-- }}} --> <refsect1 role="examples"><!-- {{{ --> &reftitle.examples; <para> <example xml:id="context.http.example-post"><!-- {{{ --> <title>Fetch a page and send POST data</title> <programlisting role="php"> <![CDATA[ <?php $postdata = http_build_query( array( 'var1' => 'some content', 'var2' => 'doh' ) ); $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata ) ); $context = stream_context_create($opts); $result = file_get_contents('http://example.com/submit.php', false, $context); ?> ]]> </programlisting> </example><!-- }}} --> </para> </refsect1><!-- }}} --> <refsect1 role="notes"> &reftitle.notes; <note> <title>Underlying socket stream context options</title> <simpara> Additional context options may be supported by the <link linkend="transports.inet">underlying transport</link> For <literal>http://</literal> streams, refer to context options for the <literal>tcp://</literal> transport. For <literal>https://</literal> streams, refer to context options for the <literal>ssl://</literal> transport. </simpara> </note> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="context.socket" /></member> <member><xref linkend="context.ssl" /></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc-de/language/context/socket.xml?view=markup&rev=1.1 Index: phpdoc-de/language/context/socket.xml +++ phpdoc-de/language/context/socket.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: hholzgra Status: working --> <refentry xml:id="context.socket" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" role="noversion"> <refnamediv> <refname>Socket Kontextoptionen</refname> <refpurpose>Liste der Socket Optionen</refpurpose> </refnamediv> <refsect1 role="description"><!-- {{{ --> &reftitle.description; <para> Socket context options are available for all wrappers that work over sockets, like <literal>tcp</literal>, <literal>http</literal> and <literal>ftp</literal>. </para> </refsect1><!-- }}} --> <refsect1 role="options"><!-- {{{ --> &reftitle.options; <para> <variablelist> <varlistentry xml:id="context.socket.bindto"> <term><parameter>bindto</parameter></term> <listitem> <para> Used to specify the IP address (either IPv4 or IPv6) and/or the port number that PHP will use to access the network. The syntax is <literal>ip:port</literal>. Setting the IP or the port to <literal>0</literal> will let the system choose the IP and/or port. </para> <note> <para> As FTP creates two socket connections during normal operation, the port number cannot be specified using this option. </para> </note> </listitem> </varlistentry> </variablelist> </para> </refsect1><!-- }}} --> <refsect1 role="changelog"><!-- {{{ --> &reftitle.changelog; <para> <informaltable> <tgroup cols="2"> <thead> <row> <entry>&Version;</entry> <entry>&Description;</entry> </row> </thead> <tbody> <row> <entry>5.1.0</entry> <entry> Added <literal>bindto</literal>. </entry> </row> </tbody> </tgroup> </informaltable> </para> </refsect1><!-- }}} --> <refsect1 role="examples"><!-- {{{ --> &reftitle.examples; <para> <example xml:id="context.socket.example-bindto"><!-- {{{ --> <title>Basic <parameter>bindto</parameter> usage example</title> <programlisting role="php"> <![CDATA[ <?php // connect to the internet using the '192.168.0.100' IP $opts = array( 'socket' => array( 'bindto' => '192.168.0.100:0', ), ); // connect to the internet using the '192.168.0.100' IP and port '7000' $opts = array( 'socket' => array( 'bindto' => '192.168.0.100:7000', ), ); // connect to the internet using port '7000' $opts = array( 'socket' => array( 'bindto' => '0:7000', ), ); // create the context... $context = stream_context_create($opts); // ...and use it to fetch the data echo file_get_contents('http://www.example.com', false, $context); ?> ]]> </programlisting> </example><!-- }}} --> </para> </refsect1><!-- }}} --> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc-de/language/context/ssl.xml?view=markup&rev=1.1 Index: phpdoc-de/language/context/ssl.xml +++ phpdoc-de/language/context/ssl.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: hholzgra Status: working --> <refentry xml:id="context.ssl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" role="noversion"> <refnamediv> <refname>SSL context options</refname> <refpurpose>SSL context option listing</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <para> Context options for <literal>ssl://</literal> and <literal>tls://</literal> transports. </para> </refsect1> <refsect1 role="options"><!-- {{{ --> &reftitle.options; <para> <variablelist> <varlistentry xml:id="context.ssl.verify-peer"> <term> <parameter>verify_peer</parameter> <type>boolean</type> </term> <listitem> <para> Require verification of SSL certificate used. </para> <para> Defaults to &false;. </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.allow-self-signed"> <term> <parameter>allow_self_signed</parameter> <type>boolean</type> </term> <listitem> <para> Allow self-signed certificates. </para> <para> Defaults to &false; </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.cafile"> <term> <parameter>cafile</parameter> <type>string</type> </term> <listitem> <para> Location of Certificate Authority file on local filesystem which should be used with the <literal>verify_peer</literal> context option to authenticate the identity of the remote peer. </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.capath"> <term> <parameter>capath</parameter> <type>string</type> </term> <listitem> <para> If <literal>cafile</literal> is not specified or if the certificate is not found there, the directory pointed to by <literal>capath</literal> is searched for a suitable certificate. <literal>capath</literal> must be a correctly hashed certificate directory. </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.local-cert"> <term> <parameter>local_cert</parameter> <type>string</type> </term> <listitem> <para> Path to local certificate file on filesystem. It must be a PEM encoded file which contains your certificate and private key. It can optionally contain the certificate chain of issuers. </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.passphrase"> <term> <parameter>passphrase</parameter> <type>string</type> </term> <listitem> <para> Passphrase with which your <literal>local_cert</literal> file was encoded. </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.cn-match"> <term> <parameter>CN_match</parameter> <type>string</type> </term> <listitem> <para> Common Name we are expecting. PHP will perform limited wildcard matching. If the Common Name does not match this, the connection attempt will fail. </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.verify-depth"> <term> <parameter>verify_depth</parameter> <type>integer</type> </term> <listitem> <para> Abort if the certificate chain is too deep. </para> <para> Defaults to no verification. </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.ciphers"> <term> <parameter>ciphers</parameter> <type>string</type> </term> <listitem> <para> Sets the list of available ciphers. The format of the string is described in <link xlink:href="&url.openssl.ciphers;">ciphers(1)</link>. </para> <para> Defaults to <literal>DEFAULT</literal>. </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.capture-peer-cert"> <term> <parameter>capture_peer_cert</parameter> <type>boolean</type> </term> <listitem> <para> If set to &true; a <literal>peer_certificate</literal> context option will be created containing the peer certificate. </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.capture-peer-chain"> <term> <parameter>capture_peer_chain</parameter> <type>boolean</type> </term> <listitem> <para> If set to &true; a <literal>peer_certificate_chain</literal> context option will be created containing the certificate chain. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1><!-- }}} --> <refsect1 role="changelog"><!-- {{{ --> &reftitle.changelog; <para> <informaltable> <tgroup cols="2"> <thead> <row> <entry>&Version;</entry> <entry>&Description;</entry> </row> </thead> <tbody> <row> <entry>5.0.0</entry> <entry> Added <parameter>capture_peer_cert</parameter>, <parameter>capture_peer_chain</parameter> and <parameter>ciphers</parameter>. </entry> </row> </tbody> </tgroup> </informaltable> </para> </refsect1><!-- }}} --> <refsect1 role="notes"> &reftitle.notes; <note> <simpara> Because <literal>ssl://</literal> is the underlying transport for the <link linkend="wrappers.http"><literal>https://</literal></link> and <link linkend="wrappers.ftp"><literal>ftps://</literal></link> wrappers, any context options which apply to <literal>ssl://</literal> also apply to <literal>https://</literal> and <literal>ftps://</literal>. </simpara> </note> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="context.socket" /></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
http://cvs.php.net/viewvc.cgi/phpdoc-de/language/context/curl.xml?view=markup&rev=1.1 Index: phpdoc-de/language/context/curl.xml +++ phpdoc-de/language/context/curl.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: hholzgra Status: working --> <refentry xml:id="context.curl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" role="noversion"> <refnamediv> <refname>CURL context options</refname> <refpurpose>CURL context option listing</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <para> CURL context options are available when the <link linkend="intro.curl">CURL</link> extension was compiled using the <option>--with-curlwrappers</option> configure option. </para> </refsect1> <refsect1 role="options"><!-- {{{ --> &reftitle.options; <para> <variablelist> <varlistentry xml:id="context.curl.method"> <term> <parameter>method</parameter> <type>string</type> </term> <listitem> <para> <constant>GET</constant>, <constant>POST</constant>, or any other HTTP method supported by the remote server. </para> <para> Defaults to <constant>GET</constant>. </para> </listitem> </varlistentry> <varlistentry xml:id="context.curl.header"> <term> <parameter>header</parameter> <type>string</type> </term> <listitem> <para> Additional headers to be sent during request. Values in this option will override other values (such as <literal>User-agent:</literal>, <literal>Host:</literal>, and <literal>Authentication:</literal>). </para> </listitem> </varlistentry> <varlistentry xml:id="context.curl.user-agent"> <term> <parameter>user_agent</parameter> <type>string</type> </term> <listitem> <para> Value to send with User-Agent: header. </para> <para> By default the <link linkend="ini.user-agent">user_agent</link> &php.ini; setting is used. </para> </listitem> </varlistentry> <varlistentry xml:id="context.curl.content"> <term> <parameter>content</parameter> <type>string</type> </term> <listitem> <para> Additional data to be sent after the headers. This option is not used for <constant>GET</constant> or <constant>HEAD</constant> requests. </para> </listitem> </varlistentry> <varlistentry xml:id="context.curl.proxy"> <term> <parameter>proxy</parameter> <type>string</type> </term> <listitem> <para> URI specifying address of proxy server. (e.g. <literal>tcp://proxy.example.com:5100</literal>). </para> </listitem> </varlistentry> <varlistentry xml:id="context.curl.max-redirects"> <term> <parameter>max_redirects</parameter> <type>integer</type> </term> <listitem> <para> The max number of redirects to follow. Value <literal>1</literal> or less means that no redirects are followed. </para> <para> Defaults to <literal>20</literal>. </para> </listitem> </varlistentry> <varlistentry xml:id="context.curl.curl-verify-ssl-host"> <term> <parameter>curl_verify_ssl_host</parameter> <type>boolean</type> </term> <listitem> <para> Verify the host. </para> <para> Defaults to &false; </para> <note> <para> This option is available for both the http and ftp protocol wrappers. </para> </note> </listitem> </varlistentry> <varlistentry xml:id="context.curl.curl-verify-ssl-peer"> <term> <parameter>curl_verify_ssl_peer</parameter> <type>boolean</type> </term> <listitem> <para> Require verification of SSL certificate used. </para> <para> Defaults to &false; </para> <note> <para> This option is available for both the http and ftp protocol wrappers. </para> </note> </listitem> </varlistentry> </variablelist> </para> </refsect1><!-- }}} --> <refsect1 role="examples"><!-- {{{ --> &reftitle.examples; <para> <example xml:id="context.curl.example-post"><!-- {{{ --> <title>Fetch a page and send POST data</title> <programlisting role="php"> <![CDATA[ <?php $postdata = http_build_query( array( 'var1' => 'some content', 'var2' => 'doh' ) ); $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata ) ); $context = stream_context_create($opts); $result = file_get_contents('http://example.com/submit.php', false, $context); ?> ]]> </programlisting> </example><!-- }}} --> </para> </refsect1><!-- }}} --> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="context.socket" /></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc-de/language/context/http.xml?view=markup&rev=1.1 Index: phpdoc-de/language/context/http.xml +++ phpdoc-de/language/context/http.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: hholzgra Status: working --> <refentry xml:id="context.http" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" role="noversion"> <refnamediv> <refname>HTTP context options</refname> <refpurpose>HTTP context option listing</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <para> Context options for <literal>http://</literal> and <literal>https://</literal> transports. </para> </refsect1> <refsect1 role="options"><!-- {{{ --> &reftitle.options; <para> <variablelist> <varlistentry xml:id="context.http.method"> <term> <parameter>method</parameter> <type>string</type> </term> <listitem> <para> <constant>GET</constant>, <constant>POST</constant>, or any other HTTP method supported by the remote server. </para> <para> Defaults to <constant>GET</constant>. </para> </listitem> </varlistentry> <varlistentry xml:id="context.http.header"> <term> <parameter>header</parameter> <type>string</type> </term> <listitem> <para> Additional headers to be sent during request. Values in this option will override other values (such as <literal>User-agent:</literal>, <literal>Host:</literal>, and <literal>Authentication:</literal>). </para> </listitem> </varlistentry> <varlistentry xml:id="context.http.user-agent"> <term> <parameter>user_agent</parameter> <type>string</type> </term> <listitem> <para> Value to send with User-Agent: header. This value will only be used if user-agent is <emphasis>not</emphasis> specified in the <literal>header</literal> context option above. </para> <para> By default the <link linkend="ini.user-agent">user_agent</link> &php.ini; setting is used. </para> </listitem> </varlistentry> <varlistentry xml:id="context.http.content"> <term> <parameter>content</parameter> <type>string</type> </term> <listitem> <para> Additional data to be sent after the headers. Typically used with POST or PUT requests. </para> </listitem> </varlistentry> <varlistentry xml:id="context.http.proxy"> <term> <parameter>proxy</parameter> <type>string</type> </term> <listitem> <para> URI specifying address of proxy server. (e.g. <literal>tcp://proxy.example.com:5100</literal>). </para> </listitem> </varlistentry> <varlistentry xml:id="context.http.request-fulluri"> <term> <parameter>request_fulluri</parameter> <type>boolean</type> </term> <listitem> <para> When set to &true;, the entire URI will be used when constructing the request. (i.e. <literal>GET http://www.example.com/path/to/file.html HTTP/1.0</literal>). While this is a non-standard request format, some proxy servers require it. </para> <para> Defaults to &false;. </para> </listitem> </varlistentry> <varlistentry xml:id="context.http.max-redirects"> <term> <parameter>max_redirects</parameter> <type>integer</type> </term> <listitem> <para> The max number of redirects to follow. Value <literal>1</literal> or less means that no redirects are followed. </para> <para> Defaults to <literal>20</literal>. </para> </listitem> </varlistentry> <varlistentry xml:id="context.http.protocol-version"> <term> <parameter>protocol_version</parameter> <type>float</type> </term> <listitem> <para> HTTP protocol version. </para> <para> Defaults to <literal>1.0</literal>. </para> </listitem> </varlistentry> <varlistentry xml:id="context.http.timeout"> <term> <parameter>timeout</parameter> <type>float</type> </term> <listitem> <para> Read timeout in seconds, specified by a <type>float</type> (e.g. <literal>10.5</literal>). </para> <para> By default the <link linkend="ini.default-socket-timeout">default_socket_timeout</link> &php.ini; setting is used. </para> </listitem> </varlistentry> <varlistentry xml:id="context.http.ignore-errors"> <term> <parameter>ignore_errors</parameter> <type>boolean</type> </term> <listitem> <para> Fetch the content even on failure status codes. </para> <para> Defaults to &false; </para> </listitem> </varlistentry> </variablelist> </para> </refsect1><!-- }}} --> <refsect1 role="changelog"><!-- {{{ --> &reftitle.changelog; <para> <informaltable> <tgroup cols="2"> <thead> <row> <entry>&Version;</entry> <entry>&Description;</entry> </row> </thead> <tbody> <row> <entry>5.3.0</entry> <entry> Added <parameter>ignore_errors</parameter>. </entry> </row> <row> <entry>5.2.1</entry> <entry> Added <parameter>timeout</parameter>. </entry> </row> <row> <entry>5.1.0</entry> <entry> Added HTTPS proxying through HTTP proxies. </entry> <entry>5.1.0</entry> <entry> Added <parameter>max_redirects</parameter>. </entry> </row> <row> <entry>5.1.0</entry> <entry> Added <parameter>protocol_version</parameter>. </entry> </row> </tbody> </tgroup> </informaltable> </para> </refsect1><!-- }}} --> <refsect1 role="examples"><!-- {{{ --> &reftitle.examples; <para> <example xml:id="context.http.example-post"><!-- {{{ --> <title>Fetch a page and send POST data</title> <programlisting role="php"> <![CDATA[ <?php $postdata = http_build_query( array( 'var1' => 'some content', 'var2' => 'doh' ) ); $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata ) ); $context = stream_context_create($opts); $result = file_get_contents('http://example.com/submit.php', false, $context); ?> ]]> </programlisting> </example><!-- }}} --> </para> </refsect1><!-- }}} --> <refsect1 role="notes"> &reftitle.notes; <note> <title>Underlying socket stream context options</title> <simpara> Additional context options may be supported by the <link linkend="transports.inet">underlying transport</link> For <literal>http://</literal> streams, refer to context options for the <literal>tcp://</literal> transport. For <literal>https://</literal> streams, refer to context options for the <literal>ssl://</literal> transport. </simpara> </note> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="context.socket" /></member> <member><xref linkend="context.ssl" /></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc-de/language/context/socket.xml?view=markup&rev=1.1 Index: phpdoc-de/language/context/socket.xml +++ phpdoc-de/language/context/socket.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: hholzgra Status: working --> <refentry xml:id="context.socket" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" role="noversion"> <refnamediv> <refname>Socket Kontextoptionen</refname> <refpurpose>Liste der Socket Optionen</refpurpose> </refnamediv> <refsect1 role="description"><!-- {{{ --> &reftitle.description; <para> Socket context options are available for all wrappers that work over sockets, like <literal>tcp</literal>, <literal>http</literal> and <literal>ftp</literal>. </para> </refsect1><!-- }}} --> <refsect1 role="options"><!-- {{{ --> &reftitle.options; <para> <variablelist> <varlistentry xml:id="context.socket.bindto"> <term><parameter>bindto</parameter></term> <listitem> <para> Used to specify the IP address (either IPv4 or IPv6) and/or the port number that PHP will use to access the network. The syntax is <literal>ip:port</literal>. Setting the IP or the port to <literal>0</literal> will let the system choose the IP and/or port. </para> <note> <para> As FTP creates two socket connections during normal operation, the port number cannot be specified using this option. </para> </note> </listitem> </varlistentry> </variablelist> </para> </refsect1><!-- }}} --> <refsect1 role="changelog"><!-- {{{ --> &reftitle.changelog; <para> <informaltable> <tgroup cols="2"> <thead> <row> <entry>&Version;</entry> <entry>&Description;</entry> </row> </thead> <tbody> <row> <entry>5.1.0</entry> <entry> Added <literal>bindto</literal>. </entry> </row> </tbody> </tgroup> </informaltable> </para> </refsect1><!-- }}} --> <refsect1 role="examples"><!-- {{{ --> &reftitle.examples; <para> <example xml:id="context.socket.example-bindto"><!-- {{{ --> <title>Basic <parameter>bindto</parameter> usage example</title> <programlisting role="php"> <![CDATA[ <?php // connect to the internet using the '192.168.0.100' IP $opts = array( 'socket' => array( 'bindto' => '192.168.0.100:0', ), ); // connect to the internet using the '192.168.0.100' IP and port '7000' $opts = array( 'socket' => array( 'bindto' => '192.168.0.100:7000', ), ); // connect to the internet using port '7000' $opts = array( 'socket' => array( 'bindto' => '0:7000', ), ); // create the context... $context = stream_context_create($opts); // ...and use it to fetch the data echo file_get_contents('http://www.example.com', false, $context); ?> ]]> </programlisting> </example><!-- }}} --> </para> </refsect1><!-- }}} --> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/phpdoc-de/language/context/ssl.xml?view=markup&rev=1.1 Index: phpdoc-de/language/context/ssl.xml +++ phpdoc-de/language/context/ssl.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: hholzgra Status: working --> <refentry xml:id="context.ssl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" role="noversion"> <refnamediv> <refname>SSL context options</refname> <refpurpose>SSL context option listing</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <para> Context options for <literal>ssl://</literal> and <literal>tls://</literal> transports. </para> </refsect1> <refsect1 role="options"><!-- {{{ --> &reftitle.options; <para> <variablelist> <varlistentry xml:id="context.ssl.verify-peer"> <term> <parameter>verify_peer</parameter> <type>boolean</type> </term> <listitem> <para> Require verification of SSL certificate used. </para> <para> Defaults to &false;. </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.allow-self-signed"> <term> <parameter>allow_self_signed</parameter> <type>boolean</type> </term> <listitem> <para> Allow self-signed certificates. </para> <para> Defaults to &false; </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.cafile"> <term> <parameter>cafile</parameter> <type>string</type> </term> <listitem> <para> Location of Certificate Authority file on local filesystem which should be used with the <literal>verify_peer</literal> context option to authenticate the identity of the remote peer. </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.capath"> <term> <parameter>capath</parameter> <type>string</type> </term> <listitem> <para> If <literal>cafile</literal> is not specified or if the certificate is not found there, the directory pointed to by <literal>capath</literal> is searched for a suitable certificate. <literal>capath</literal> must be a correctly hashed certificate directory. </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.local-cert"> <term> <parameter>local_cert</parameter> <type>string</type> </term> <listitem> <para> Path to local certificate file on filesystem. It must be a PEM encoded file which contains your certificate and private key. It can optionally contain the certificate chain of issuers. </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.passphrase"> <term> <parameter>passphrase</parameter> <type>string</type> </term> <listitem> <para> Passphrase with which your <literal>local_cert</literal> file was encoded. </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.cn-match"> <term> <parameter>CN_match</parameter> <type>string</type> </term> <listitem> <para> Common Name we are expecting. PHP will perform limited wildcard matching. If the Common Name does not match this, the connection attempt will fail. </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.verify-depth"> <term> <parameter>verify_depth</parameter> <type>integer</type> </term> <listitem> <para> Abort if the certificate chain is too deep. </para> <para> Defaults to no verification. </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.ciphers"> <term> <parameter>ciphers</parameter> <type>string</type> </term> <listitem> <para> Sets the list of available ciphers. The format of the string is described in <link xlink:href="&url.openssl.ciphers;">ciphers(1)</link>. </para> <para> Defaults to <literal>DEFAULT</literal>. </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.capture-peer-cert"> <term> <parameter>capture_peer_cert</parameter> <type>boolean</type> </term> <listitem> <para> If set to &true; a <literal>peer_certificate</literal> context option will be created containing the peer certificate. </para> </listitem> </varlistentry> <varlistentry xml:id="context.ssl.capture-peer-chain"> <term> <parameter>capture_peer_chain</parameter> <type>boolean</type> </term> <listitem> <para> If set to &true; a <literal>peer_certificate_chain</literal> context option will be created containing the certificate chain. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1><!-- }}} --> <refsect1 role="changelog"><!-- {{{ --> &reftitle.changelog; <para> <informaltable> <tgroup cols="2"> <thead> <row> <entry>&Version;</entry> <entry>&Description;</entry> </row> </thead> <tbody> <row> <entry>5.0.0</entry> <entry> Added <parameter>capture_peer_cert</parameter>, <parameter>capture_peer_chain</parameter> and <parameter>ciphers</parameter>. </entry> </row> </tbody> </tgroup> </informaltable> </para> </refsect1><!-- }}} --> <refsect1 role="notes"> &reftitle.notes; <note> <simpara> Because <literal>ssl://</literal> is the underlying transport for the <link linkend="wrappers.http"><literal>https://</literal></link> and <link linkend="wrappers.ftp"><literal>ftps://</literal></link> wrappers, any context options which apply to <literal>ssl://</literal> also apply to <literal>https://</literal> and <literal>ftps://</literal>. </simpara> </note> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><xref linkend="context.socket" /></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->