mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-25 17:32:07 +01:00
This follow up on 351133 which is the EN equivalent Commands used to generate this patch is located https://gist.github.com/Girgias/440124551e14c3bc5106c53bc493449e This was used as the French translation was fully up to date before this change came up and therefore replacing the EN-Revision is safe git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@351172 c90b9560-bf6c-de11-be94-00142212c4b1
218 lines
5.6 KiB
XML
218 lines
5.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 86e6094e86b84a51d00ab217ac50ce8dde33d82a Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
|
|
<refentry xml:id="context.curl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" role="noversion">
|
|
<refnamediv>
|
|
<refname>Options de contexte CURL</refname>
|
|
<refpurpose>Liste des options de contexte CURL</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<para>
|
|
Les options de contexte CURL sont disponibles lorsque l'extension
|
|
<link linkend="intro.curl">CURL</link> a été compilée en utilisant
|
|
l'option de configuration <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>, ou
|
|
n'importe quelle méthode HTTP supportée par le serveur distant.
|
|
</para>
|
|
<para>
|
|
Par défaut, vaut <constant>GET</constant>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="context.curl.header">
|
|
<term>
|
|
<parameter>header</parameter>
|
|
<type>&string;</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
En-têtes additionnels à envoyer lors de la requête. Les valeurs
|
|
de cette option écraseront les autres valeurs (comme
|
|
<literal>User-agent:</literal>, <literal>Host:</literal>,
|
|
et <literal>Authentication:</literal>).
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="context.curl.user-agent">
|
|
<term>
|
|
<parameter>user_agent</parameter>
|
|
<type>&string;</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
Valeur à envoyer avec l'en-tête <literal>User-Agent:</literal>.
|
|
</para>
|
|
<para>
|
|
Par défaut, la valeur de la directive
|
|
<link linkend="ini.user-agent">user_agent</link> du fichier
|
|
&php.ini; sera utilisée.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="context.curl.content">
|
|
<term>
|
|
<parameter>content</parameter>
|
|
<type>&string;</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
Les données additionnelles à envoyer après les en-têtes. Cette option
|
|
n'est pas utilisée pour les requêtes <constant>GET</constant> ou
|
|
<constant>HEAD</constant>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="context.curl.proxy">
|
|
<term>
|
|
<parameter>proxy</parameter>
|
|
<type>&string;</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
URI spécifiant l'adresse du proxy. (e.g.
|
|
<literal>tcp://proxy.exemple.com:5100</literal>).
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="context.curl.max-redirects">
|
|
<term>
|
|
<parameter>max_redirects</parameter>
|
|
<type>int</type>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
Le nombre maximal de redirections à suivre. La valeur <literal>1</literal> ou
|
|
inférieure signifie qu'il ne faut suivre aucune redirection.
|
|
</para>
|
|
<para>
|
|
Par défaut, vaut <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>
|
|
Vérifie l'hôte.
|
|
</para>
|
|
<para>
|
|
Par défaut, vaut &false;
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Cette option est disponible pour les protocoles http et ftp.
|
|
</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>
|
|
Demande une vérification du certificat SSL utilisé.
|
|
</para>
|
|
<para>
|
|
Par défaut, vaut &false;
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Cette option est disponible pour les protocoles http et ftp.
|
|
</para>
|
|
</note>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1><!-- }}} -->
|
|
|
|
<refsect1 role="examples"><!-- {{{ -->
|
|
&reftitle.examples;
|
|
<para>
|
|
<example xml:id="context.curl.example-post"><!-- {{{ -->
|
|
<title>Récupère une page et envoie des données avec la méthode POST</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
|
|
$postdata = http_build_query(
|
|
array(
|
|
'var1' => 'du contenu',
|
|
'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
|
|
-->
|