<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.curl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.curl-multi-setopt.php',
    1 => 'curl_multi_setopt',
    2 => 'D&eacute;finit une option multiple cURL',
  ),
  'up' => 
  array (
    0 => 'ref.curl.php',
    1 => 'Fonctions cURL',
  ),
  'prev' => 
  array (
    0 => 'function.curl-multi-select.php',
    1 => 'curl_multi_select',
  ),
  'next' => 
  array (
    0 => 'function.curl-multi-strerror.php',
    1 => 'curl_multi_strerror',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/curl/functions/curl-multi-setopt.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.curl-multi-setopt" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">curl_multi_setopt</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">curl_multi_setopt</span> &mdash; <span class="dc-title">Définit une option multiple cURL</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.curl-multi-setopt-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>curl_multi_setopt</strong></span>(<span class="methodparam"><span class="type"><a href="class.curlmultihandle.php" class="type CurlMultiHandle">CurlMultiHandle</a></span> <code class="parameter">$multi_handle</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$option</code></span>, <span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$value</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Définit une option sur le gestionnaire multi cURL donné.
  </p>
  
 </div>

 
 <div class="refsect1 parameters" id="refsect1-function.curl-multi-setopt-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <dl>
   <dt><code class="parameter">multi_handle</code>
</dt><dd><p class="para">Un gestionnaire cURL multiple retourné par
<span class="function"><a href="function.curl-multi-init.php" class="function">curl_multi_init()</a></span>.</p></dd>
   
    <dt><code class="parameter">option</code></dt>
    <dd>
     <p class="para">
      Une des constantes <strong><code><a href="curl.constants.php#constant.curlmopt-chunk-length-penalty-size">CURLMOPT_<span class="replaceable">*</span></a></code></strong>.
     </p>
    </dd>
   
   
    <dt><code class="parameter">value</code></dt>
    <dd>
     <p class="para">
      La valeur à définir pour le paramètre
      <code class="parameter">option</code>.
      Voir la description des
      constantes <strong><code><a href="curl.constants.php#constant.curlmopt-chunk-length-penalty-size">CURLMOPT_<span class="replaceable">*</span></a></code></strong>
      pour des détails sur le type de valeurs attendues par chaque constante.
     </p>
    </dd>
   
  </dl>
  </div>


  <div class="refsect1 returnvalues" id="refsect1-function.curl-multi-setopt-returnvalues">
   <h3 class="title">Valeurs de retour</h3>
   <p class="para">
    Cette fonction retourne <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> en cas de succès ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si une erreur survient.
   </p>
  </div>


  <div class="refsect1 changelog" id="refsect1-function.curl-multi-setopt-changelog">
   <h3 class="title">Historique</h3>
   <p class="para">
    <table class="doctable informaltable">
     
      <thead>
       <tr>
        <th>Version</th>
        <th>Description</th>
       </tr>

      </thead>

      <tbody class="tbody">
       <tr>
        <td>8.2.0</td>
        <td>
         Ajout de <strong><code><a href="curl.constants.php#constant.curlmopt-max-concurrent-streams">CURLMOPT_MAX_CONCURRENT_STREAMS</a></code></strong>.
        </td>
       </tr>

       <tr>
 <td>8.0.0</td>
 <td>
  <code class="parameter">multi_handle</code> attend désormais une instance de <span class="classname"><a href="class.curlmultihandle.php" class="classname">CurlMultiHandle</a></span>;
  auparavant; une <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> était attendue.
 </td>
</tr>

       <tr>
        <td>7.1.0</td>
        <td>
         Ajout de <strong><code><a href="curl.constants.php#constant.curlmopt-pushfunction">CURLMOPT_PUSHFUNCTION</a></code></strong>.
        </td>
       </tr>

       <tr>
        <td>7.0.7</td>
        <td>
         Ajout de <strong><code><a href="curl.constants.php#constant.curlmopt-chunk-length-penalty-size">CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE</a></code></strong>,
         <strong><code><a href="curl.constants.php#constant.curlmopt-content-length-penalty-size">CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE</a></code></strong>,
         <strong><code><a href="curl.constants.php#constant.curlmopt-max-host-connections">CURLMOPT_MAX_HOST_CONNECTIONS</a></code></strong>,
         <strong><code><a href="curl.constants.php#constant.curlmopt-max-pipeline-length">CURLMOPT_MAX_PIPELINE_LENGTH</a></code></strong> et
         <strong><code><a href="curl.constants.php#constant.curlmopt-max-total-connections">CURLMOPT_MAX_TOTAL_CONNECTIONS</a></code></strong>.
        </td>
       </tr>

      </tbody>
     
    </table>

   </p>
  </div>


</div><?php manual_footer($setup); ?>