mirror of
https://github.com/php/doc-ja.git
synced 2026-03-23 22:52:11 +01:00
Remove curl context
This was removed in PHP 5.5: https://wiki.php.net/rfc/curl-wrappers-removal-rfc
2e39b215fe
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 68d6bce01964dd9c1792027efadabcb9968a42fe Maintainer: takagi Status: ready -->
|
||||
<!-- EN-Revision: 2e39b215fe0d147c5dce83c0e4216552747eb5ff Maintainer: takagi Status: ready -->
|
||||
|
||||
<reference xml:id="context" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>コンテキストオプションとパラメータ</title>
|
||||
@@ -20,7 +20,6 @@
|
||||
&language.context.http;
|
||||
&language.context.ftp;
|
||||
&language.context.ssl;
|
||||
&language.context.curl;
|
||||
&language.context.phar;
|
||||
&language.context.parameters;
|
||||
&language.context.zip;
|
||||
|
||||
@@ -1,217 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 86e6094e86b84a51d00ab217ac50ce8dde33d82a Maintainer: takagi Status: ready -->
|
||||
|
||||
<refentry xml:id="context.curl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" role="noversion">
|
||||
<refnamediv>
|
||||
<refname>CURL コンテキストオプション</refname>
|
||||
<refpurpose>CURL コンテキストオプションの一覧</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<para>
|
||||
CURL コンテキストオプションは、
|
||||
<link linkend="intro.curl">CURL</link> 拡張モジュールのコンパイル時に
|
||||
<option>--with-curlwrappers</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>
|
||||
あるいはその他リモートサーバーがサポートする HTTP メソッド。
|
||||
</para>
|
||||
<para>
|
||||
デフォルトは <constant>GET</constant> です。
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="context.curl.header">
|
||||
<term>
|
||||
<parameter>header</parameter>
|
||||
<type>string</type>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
リクエスト時に送信する追加のヘッダ。このオプションの値は
|
||||
(<literal>User-agent:</literal> や <literal>Host:</literal>、
|
||||
<literal>Authentication:</literal> といった)
|
||||
他の値を上書きします。
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="context.curl.user-agent">
|
||||
<term>
|
||||
<parameter>user_agent</parameter>
|
||||
<type>string</type>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
User-Agent: ヘッダで送信する値。
|
||||
</para>
|
||||
<para>
|
||||
デフォルトでは、&php.ini; の
|
||||
<link linkend="ini.user-agent">user_agent</link>
|
||||
の設定内容を使用します。
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="context.curl.content">
|
||||
<term>
|
||||
<parameter>content</parameter>
|
||||
<type>string</type>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
ヘッダの後に送信する追加データ。このオプションは
|
||||
<constant>GET</constant> あるいは <constant>HEAD</constant>
|
||||
リクエストでは使用しません。
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="context.curl.proxy">
|
||||
<term>
|
||||
<parameter>proxy</parameter>
|
||||
<type>string</type>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
プロキシサーバーのアドレスを表す URI
|
||||
(<literal>tcp://proxy.example.com:5100</literal> など)。
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="context.curl.max-redirects">
|
||||
<term>
|
||||
<parameter>max_redirects</parameter>
|
||||
<type>int</type>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
リダイレクトを追いかける最大数。<literal>1</literal>
|
||||
以下を指定した場合は、リダイレクトを追跡しません。
|
||||
</para>
|
||||
<para>
|
||||
デフォルトは <literal>20</literal> です。
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="context.curl.curl-verify-ssl-host">
|
||||
<term>
|
||||
<parameter>curl_verify_ssl_host</parameter>
|
||||
<type>bool</type>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
ホストを検証する。
|
||||
</para>
|
||||
<para>
|
||||
デフォルトは &false; です。
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
このオプションは、http および ftp の両方のプロトコルラッパーで使用可能です。
|
||||
</para>
|
||||
</note>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="context.curl.curl-verify-ssl-peer">
|
||||
<term>
|
||||
<parameter>curl_verify_ssl_peer</parameter>
|
||||
<type>bool</type>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
SSL 証明書の検証を要求する。
|
||||
</para>
|
||||
<para>
|
||||
デフォルトは &false; です。
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
このオプションは、http および ftp の両方のプロトコルラッパーで使用可能です。
|
||||
</para>
|
||||
</note>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1><!-- }}} -->
|
||||
|
||||
<refsect1 role="examples"><!-- {{{ -->
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
<example xml:id="context.curl.example-post"><!-- {{{ -->
|
||||
<title>ページの取得と POST データの送信</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:"~/.phpdoc/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
|
||||
-->
|
||||
|
||||
Reference in New Issue
Block a user