<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.curl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'curl.constants.php',
    1 => '预定义常量',
    2 => '预定义常量',
  ),
  'up' => 
  array (
    0 => 'book.curl.php',
    1 => 'cURL',
  ),
  'prev' => 
  array (
    0 => 'curl.resources.php',
    1 => '资源类型',
  ),
  'next' => 
  array (
    0 => 'curl.examples.php',
    1 => '示例',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/curl/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="curl.constants" class="appendix">
 <h1 class="title">预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <p class="para">
  <span class="function"><a href="function.curl-setopt.php" class="function">curl_setopt()</a></span>、<span class="function"><a href="function.curl-multi-setopt.php" class="function">curl_multi_setopt()</a></span>、
  <span class="function"><a href="function.curl-getinfo.php" class="function">curl_getinfo()</a></span> 文档中常量的描述和使用。
 </p>
 <table class="doctable table">
      <tr>
       <th>常量</th>
       <th>描述</th>
      </tr>
  <tr>
   <td id="constant.curlaltsvc-h1">
    <strong><code><a href="curl.constants.php#constant.curlaltsvc-h1">CURLALTSVC_H1</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.64.1 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlaltsvc-h2">
    <strong><code><a href="curl.constants.php#constant.curlaltsvc-h2">CURLALTSVC_H2</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.64.1 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlaltsvc-h3">
    <strong><code><a href="curl.constants.php#constant.curlaltsvc-h3">CURLALTSVC_H3</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.64.1 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlaltsvc-readonlyfile">
    <strong><code><a href="curl.constants.php#constant.curlaltsvc-readonlyfile">CURLALTSVC_READONLYFILE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.64.1 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlauth-any">
    <strong><code><a href="curl.constants.php#constant.curlauth-any">CURLAUTH_ANY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlauth-anysafe">
    <strong><code><a href="curl.constants.php#constant.curlauth-anysafe">CURLAUTH_ANYSAFE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlauth-aws-sigv4">
    <strong><code><a href="curl.constants.php#constant.curlauth-aws-sigv4">CURLAUTH_AWS_SIGV4</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.75.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlauth-basic">
    <strong><code><a href="curl.constants.php#constant.curlauth-basic">CURLAUTH_BASIC</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlauth-bearer">
    <strong><code><a href="curl.constants.php#constant.curlauth-bearer">CURLAUTH_BEARER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.3.0 和 cURL 7.61.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlauth-digest">
    <strong><code><a href="curl.constants.php#constant.curlauth-digest">CURLAUTH_DIGEST</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlauth-digest-ie">
    <strong><code><a href="curl.constants.php#constant.curlauth-digest-ie">CURLAUTH_DIGEST_IE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     使用带有 IE 风格的 HTTP 摘要认证。自 cURL 7.19.3 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlauth-gssapi">
    <strong><code><a href="curl.constants.php#constant.curlauth-gssapi">CURLAUTH_GSSAPI</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.3.0 和 cURL 7.54.1 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlauth-gssnegotiate">
    <strong><code><a href="curl.constants.php#constant.curlauth-gssnegotiate">CURLAUTH_GSSNEGOTIATE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlauth-negotiate">
    <strong><code><a href="curl.constants.php#constant.curlauth-negotiate">CURLAUTH_NEGOTIATE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.0.7 和 cURL 7.38.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlauth-none">
    <strong><code><a href="curl.constants.php#constant.curlauth-none">CURLAUTH_NONE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 cURL 7.10.6 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlauth-ntlm">
    <strong><code><a href="curl.constants.php#constant.curlauth-ntlm">CURLAUTH_NTLM</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlauth-ntlm-wb">
    <strong><code><a href="curl.constants.php#constant.curlauth-ntlm-wb">CURLAUTH_NTLM_WB</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.0.7 和 cURL 7.22.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlauth-only">
    <strong><code><a href="curl.constants.php#constant.curlauth-only">CURLAUTH_ONLY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     这是元符号。将此值与单个特定认证值进行 OR 运算，以强制 libcurl
     探测不受限制的认证方法；如果不可用，则仅接受该单个认证算法。自 cURL 7.21.3 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlftpauth-default">
    <strong><code><a href="curl.constants.php#constant.curlftpauth-default">CURLFTPAUTH_DEFAULT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlftpauth-ssl">
    <strong><code><a href="curl.constants.php#constant.curlftpauth-ssl">CURLFTPAUTH_SSL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlftpauth-tls">
    <strong><code><a href="curl.constants.php#constant.curlftpauth-tls">CURLFTPAUTH_TLS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlftpmethod-default">
    <strong><code><a href="curl.constants.php#constant.curlftpmethod-default">CURLFTPMETHOD_DEFAULT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.15.3 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlftpmethod-multicwd">
    <strong><code><a href="curl.constants.php#constant.curlftpmethod-multicwd">CURLFTPMETHOD_MULTICWD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     对指定 URL 中的每个路径部分执行一次 <code class="literal">CWD</code> 操作。自 cURL 7.15.3 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlftpmethod-nocwd">
    <strong><code><a href="curl.constants.php#constant.curlftpmethod-nocwd">CURLFTPMETHOD_NOCWD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     libcurl 完全不执行 <code class="literal">CWD</code> 操作。libcurl
     执行 <code class="literal">SIZE</code>、<code class="literal">RETR</code>、<code class="literal">STOR</code> 等命令，并为这些命令向服务器提供完整路径。自
     cURL 7.15.3 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlftpmethod-singlecwd">
    <strong><code><a href="curl.constants.php#constant.curlftpmethod-singlecwd">CURLFTPMETHOD_SINGLECWD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     libcurl 使用完整的目标目录执行一次 <code class="literal">CWD</code>
     操作，然后像在多次 CWD 情况下对文件进行操作。自 cURL 7.15.3 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlftpssl-all">
    <strong><code><a href="curl.constants.php#constant.curlftpssl-all">CURLFTPSSL_ALL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlftpssl-ccc-active">
    <strong><code><a href="curl.constants.php#constant.curlftpssl-ccc-active">CURLFTPSSL_CCC_ACTIVE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     发起关闭操作并等待回复。自 cURL 7.16.2 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlftpssl-ccc-none">
    <strong><code><a href="curl.constants.php#constant.curlftpssl-ccc-none">CURLFTPSSL_CCC_NONE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     不要尝试使用 CCC（清除命令通道）。自 cURL 7.16.2 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlftpssl-ccc-passive">
    <strong><code><a href="curl.constants.php#constant.curlftpssl-ccc-passive">CURLFTPSSL_CCC_PASSIVE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     不要发起关闭操作，而是等待服务器进行关闭。不要发送回复。自 cURL 7.16.1 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlftpssl-control">
    <strong><code><a href="curl.constants.php#constant.curlftpssl-control">CURLFTPSSL_CONTROL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlftpssl-none">
    <strong><code><a href="curl.constants.php#constant.curlftpssl-none">CURLFTPSSL_NONE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlftpssl-try">
    <strong><code><a href="curl.constants.php#constant.curlftpssl-try">CURLFTPSSL_TRY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlftp-create-dir">
    <strong><code><a href="curl.constants.php#constant.curlftp-create-dir">CURLFTP_CREATE_DIR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.0.7 和 cURL 7.19.3 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlftp-create-dir-none">
    <strong><code><a href="curl.constants.php#constant.curlftp-create-dir-none">CURLFTP_CREATE_DIR_NONE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.0.7 和 cURL 7.19.3 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlftp-create-dir-retry">
    <strong><code><a href="curl.constants.php#constant.curlftp-create-dir-retry">CURLFTP_CREATE_DIR_RETRY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.0.7 和 cURL 7.19.3 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlgssapi-delegation-flag">
    <strong><code><a href="curl.constants.php#constant.curlgssapi-delegation-flag">CURLGSSAPI_DELEGATION_FLAG</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     允许无条件的 GSSAPI 凭证委派。自 cURL 7.22.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlgssapi-delegation-policy-flag">
    <strong><code><a href="curl.constants.php#constant.curlgssapi-delegation-policy-flag">CURLGSSAPI_DELEGATION_POLICY_FLAG</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     仅当服务票据（service ticket）中设置了 <code class="literal">OK-AS-DELEGATE</code>
     flag 的情况下进行委托，前提是由 GSS-API 实现支持此功能，并且在编译时定义了 <code class="literal">GSS_C_DELEG_POLICY_FLAG</code> 时可用。自 cURL 7.22.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlheader-separate">
    <strong><code><a href="curl.constants.php#constant.curlheader-separate">CURLHEADER_SEPARATE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.0.7 和 cURL 7.37.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlheader-unified">
    <strong><code><a href="curl.constants.php#constant.curlheader-unified">CURLHEADER_UNIFIED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.0.7 和 cURL 7.37.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlhsts-enable">
    <strong><code><a href="curl.constants.php#constant.curlhsts-enable">CURLHSTS_ENABLE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.74.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlhsts-readonlyfile">
    <strong><code><a href="curl.constants.php#constant.curlhsts-readonlyfile">CURLHSTS_READONLYFILE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.74.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlkhmatch-last">
    <strong><code><a href="curl.constants.php#constant.curlkhmatch-last">CURLKHMATCH_LAST</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.3.0 和 cURL 7.19.6 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlkhmatch-mismatch">
    <strong><code><a href="curl.constants.php#constant.curlkhmatch-mismatch">CURLKHMATCH_MISMATCH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.3.0 和 cURL 7.19.6 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlkhmatch-missing">
    <strong><code><a href="curl.constants.php#constant.curlkhmatch-missing">CURLKHMATCH_MISSING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.3.0 和 cURL 7.19.6 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlkhmatch-ok">
    <strong><code><a href="curl.constants.php#constant.curlkhmatch-ok">CURLKHMATCH_OK</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.3.0 和 cURL 7.19.6 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlmimeopt-formescape">
    <strong><code><a href="curl.constants.php#constant.curlmimeopt-formescape">CURLMIMEOPT_FORMESCAPE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.3.0 和 cURL 7.81.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlmsg-done">
    <strong><code><a href="curl.constants.php#constant.curlmsg-done">CURLMSG_DONE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpipe-http1">
    <strong><code><a href="curl.constants.php#constant.curlpipe-http1">CURLPIPE_HTTP1</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 cURL 7.43.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpipe-multiplex">
    <strong><code><a href="curl.constants.php#constant.curlpipe-multiplex">CURLPIPE_MULTIPLEX</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 cURL 7.43.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpipe-nothing">
    <strong><code><a href="curl.constants.php#constant.curlpipe-nothing">CURLPIPE_NOTHING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 cURL 7.43.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlproxy-http">
    <strong><code><a href="curl.constants.php#constant.curlproxy-http">CURLPROXY_HTTP</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 cURL 7.10 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlproxy-https">
    <strong><code><a href="curl.constants.php#constant.curlproxy-https">CURLPROXY_HTTPS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.3.0 和 cURL 7.52.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlproxy-http-1-0">
    <strong><code><a href="curl.constants.php#constant.curlproxy-http-1-0">CURLPROXY_HTTP_1_0</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.0.7 和 cURL 7.19.3 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlproxy-socks4">
    <strong><code><a href="curl.constants.php#constant.curlproxy-socks4">CURLPROXY_SOCKS4</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 cURL 7.10 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlproxy-socks4a">
    <strong><code><a href="curl.constants.php#constant.curlproxy-socks4a">CURLPROXY_SOCKS4A</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 cURL 7.18.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlproxy-socks5">
    <strong><code><a href="curl.constants.php#constant.curlproxy-socks5">CURLPROXY_SOCKS5</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 cURL 7.10 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlproxy-socks5-hostname">
    <strong><code><a href="curl.constants.php#constant.curlproxy-socks5-hostname">CURLPROXY_SOCKS5_HOSTNAME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 cURL 7.18.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-bad-address-type">
    <strong><code><a href="curl.constants.php#constant.curlpx-bad-address-type">CURLPX_BAD_ADDRESS_TYPE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-bad-version">
    <strong><code><a href="curl.constants.php#constant.curlpx-bad-version">CURLPX_BAD_VERSION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-closed">
    <strong><code><a href="curl.constants.php#constant.curlpx-closed">CURLPX_CLOSED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-gssapi">
    <strong><code><a href="curl.constants.php#constant.curlpx-gssapi">CURLPX_GSSAPI</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-gssapi-permsg">
    <strong><code><a href="curl.constants.php#constant.curlpx-gssapi-permsg">CURLPX_GSSAPI_PERMSG</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-gssapi-protection">
    <strong><code><a href="curl.constants.php#constant.curlpx-gssapi-protection">CURLPX_GSSAPI_PROTECTION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-identd">
    <strong><code><a href="curl.constants.php#constant.curlpx-identd">CURLPX_IDENTD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-identd-differ">
    <strong><code><a href="curl.constants.php#constant.curlpx-identd-differ">CURLPX_IDENTD_DIFFER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-long-hostname">
    <strong><code><a href="curl.constants.php#constant.curlpx-long-hostname">CURLPX_LONG_HOSTNAME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-long-passwd">
    <strong><code><a href="curl.constants.php#constant.curlpx-long-passwd">CURLPX_LONG_PASSWD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-long-user">
    <strong><code><a href="curl.constants.php#constant.curlpx-long-user">CURLPX_LONG_USER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-no-auth">
    <strong><code><a href="curl.constants.php#constant.curlpx-no-auth">CURLPX_NO_AUTH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-ok">
    <strong><code><a href="curl.constants.php#constant.curlpx-ok">CURLPX_OK</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-recv-address">
    <strong><code><a href="curl.constants.php#constant.curlpx-recv-address">CURLPX_RECV_ADDRESS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-recv-auth">
    <strong><code><a href="curl.constants.php#constant.curlpx-recv-auth">CURLPX_RECV_AUTH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-recv-connect">
    <strong><code><a href="curl.constants.php#constant.curlpx-recv-connect">CURLPX_RECV_CONNECT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-recv-reqack">
    <strong><code><a href="curl.constants.php#constant.curlpx-recv-reqack">CURLPX_RECV_REQACK</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-reply-address-type-not-supported">
    <strong><code><a href="curl.constants.php#constant.curlpx-reply-address-type-not-supported">CURLPX_REPLY_ADDRESS_TYPE_NOT_SUPPORTED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-reply-command-not-supported">
    <strong><code><a href="curl.constants.php#constant.curlpx-reply-command-not-supported">CURLPX_REPLY_COMMAND_NOT_SUPPORTED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-reply-connection-refused">
    <strong><code><a href="curl.constants.php#constant.curlpx-reply-connection-refused">CURLPX_REPLY_CONNECTION_REFUSED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-reply-general-server-failure">
    <strong><code><a href="curl.constants.php#constant.curlpx-reply-general-server-failure">CURLPX_REPLY_GENERAL_SERVER_FAILURE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-reply-host-unreachable">
    <strong><code><a href="curl.constants.php#constant.curlpx-reply-host-unreachable">CURLPX_REPLY_HOST_UNREACHABLE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-reply-network-unreachable">
    <strong><code><a href="curl.constants.php#constant.curlpx-reply-network-unreachable">CURLPX_REPLY_NETWORK_UNREACHABLE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-reply-not-allowed">
    <strong><code><a href="curl.constants.php#constant.curlpx-reply-not-allowed">CURLPX_REPLY_NOT_ALLOWED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-reply-ttl-expired">
    <strong><code><a href="curl.constants.php#constant.curlpx-reply-ttl-expired">CURLPX_REPLY_TTL_EXPIRED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-reply-unassigned">
    <strong><code><a href="curl.constants.php#constant.curlpx-reply-unassigned">CURLPX_REPLY_UNASSIGNED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-request-failed">
    <strong><code><a href="curl.constants.php#constant.curlpx-request-failed">CURLPX_REQUEST_FAILED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-resolve-host">
    <strong><code><a href="curl.constants.php#constant.curlpx-resolve-host">CURLPX_RESOLVE_HOST</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-send-auth">
    <strong><code><a href="curl.constants.php#constant.curlpx-send-auth">CURLPX_SEND_AUTH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-send-connect">
    <strong><code><a href="curl.constants.php#constant.curlpx-send-connect">CURLPX_SEND_CONNECT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-send-request">
    <strong><code><a href="curl.constants.php#constant.curlpx-send-request">CURLPX_SEND_REQUEST</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-unknown-fail">
    <strong><code><a href="curl.constants.php#constant.curlpx-unknown-fail">CURLPX_UNKNOWN_FAIL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-unknown-mode">
    <strong><code><a href="curl.constants.php#constant.curlpx-unknown-mode">CURLPX_UNKNOWN_MODE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlpx-user-rejected">
    <strong><code><a href="curl.constants.php#constant.curlpx-user-rejected">CURLPX_USER_REJECTED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.73.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlssh-auth-agent">
    <strong><code><a href="curl.constants.php#constant.curlssh-auth-agent">CURLSSH_AUTH_AGENT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.0.7 和 cURL 7.28.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlssh-auth-any">
    <strong><code><a href="curl.constants.php#constant.curlssh-auth-any">CURLSSH_AUTH_ANY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlssh-auth-default">
    <strong><code><a href="curl.constants.php#constant.curlssh-auth-default">CURLSSH_AUTH_DEFAULT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlssh-auth-gssapi">
    <strong><code><a href="curl.constants.php#constant.curlssh-auth-gssapi">CURLSSH_AUTH_GSSAPI</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.3.0 和 cURL 7.58.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlssh-auth-host">
    <strong><code><a href="curl.constants.php#constant.curlssh-auth-host">CURLSSH_AUTH_HOST</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlssh-auth-keyboard">
    <strong><code><a href="curl.constants.php#constant.curlssh-auth-keyboard">CURLSSH_AUTH_KEYBOARD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlssh-auth-none">
    <strong><code><a href="curl.constants.php#constant.curlssh-auth-none">CURLSSH_AUTH_NONE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlssh-auth-password">
    <strong><code><a href="curl.constants.php#constant.curlssh-auth-password">CURLSSH_AUTH_PASSWORD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlssh-auth-publickey">
    <strong><code><a href="curl.constants.php#constant.curlssh-auth-publickey">CURLSSH_AUTH_PUBLICKEY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlsslopt-allow-beast">
    <strong><code><a href="curl.constants.php#constant.curlsslopt-allow-beast">CURLSSLOPT_ALLOW_BEAST</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 cURL 7.25.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlsslopt-auto-client-cert">
    <strong><code><a href="curl.constants.php#constant.curlsslopt-auto-client-cert">CURLSSLOPT_AUTO_CLIENT_CERT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.77.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlsslopt-native-ca">
    <strong><code><a href="curl.constants.php#constant.curlsslopt-native-ca">CURLSSLOPT_NATIVE_CA</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.71.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlsslopt-no-partialchain">
    <strong><code><a href="curl.constants.php#constant.curlsslopt-no-partialchain">CURLSSLOPT_NO_PARTIALCHAIN</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.68.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlsslopt-no-revoke">
    <strong><code><a href="curl.constants.php#constant.curlsslopt-no-revoke">CURLSSLOPT_NO_REVOKE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.0.7 和 cURL 7.44.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlsslopt-revoke-best-effort">
    <strong><code><a href="curl.constants.php#constant.curlsslopt-revoke-best-effort">CURLSSLOPT_REVOKE_BEST_EFFORT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.70.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlusessl-all">
    <strong><code><a href="curl.constants.php#constant.curlusessl-all">CURLUSESSL_ALL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     所有通信都需要 SSL，否则会失败并出现 <strong><code>CURLE_USE_SSL_FAILED</code></strong>。自 cURL 7.17.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlusessl-control">
    <strong><code><a href="curl.constants.php#constant.curlusessl-control">CURLUSESSL_CONTROL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     控制连接需要 SSL，否则会失败并出现 <strong><code>CURLE_USE_SSL_FAILED</code></strong>。自 cURL 7.17.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlusessl-none">
    <strong><code><a href="curl.constants.php#constant.curlusessl-none">CURLUSESSL_NONE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     不要尝试使用 SSL。自 cURL 7.17.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlusessl-try">
    <strong><code><a href="curl.constants.php#constant.curlusessl-try">CURLUSESSL_TRY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     尝试使用 SSL，如果失败则按正常方式继续。注意，如果协商不成功，服务器可能会关闭连接。自 cURL 7.17.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlversion-now">
    <strong><code><a href="curl.constants.php#constant.curlversion-now">CURLVERSION_NOW</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlws-raw-mode">
    <strong><code><a href="curl.constants.php#constant.curlws-raw-mode">CURLWS_RAW_MODE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.3.0 和 cURL 7.86.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-fnmatchfunc-fail">
    <strong><code><a href="curl.constants.php#constant.curl-fnmatchfunc-fail">CURL_FNMATCHFUNC_FAIL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     如果发生错误，则由通配符匹配回调函数返回。自 cURL 7.21.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-fnmatchfunc-match">
    <strong><code><a href="curl.constants.php#constant.curl-fnmatchfunc-match">CURL_FNMATCHFUNC_MATCH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     如果模式与字符串匹配，则由通配符匹配回调函数返回。自 cURL 7.21.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-fnmatchfunc-nomatch">
    <strong><code><a href="curl.constants.php#constant.curl-fnmatchfunc-nomatch">CURL_FNMATCHFUNC_NOMATCH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     如果模式与字符串不匹配，则由通配符匹配回调函数返回。自 cURL 7.21.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-http-version-1-0">
    <strong><code><a href="curl.constants.php#constant.curl-http-version-1-0">CURL_HTTP_VERSION_1_0</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-http-version-1-1">
    <strong><code><a href="curl.constants.php#constant.curl-http-version-1-1">CURL_HTTP_VERSION_1_1</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-http-version-2">
    <strong><code><a href="curl.constants.php#constant.curl-http-version-2">CURL_HTTP_VERSION_2</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.0.7 和 cURL 7.43.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-http-version-2tls">
    <strong><code><a href="curl.constants.php#constant.curl-http-version-2tls">CURL_HTTP_VERSION_2TLS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.0.7 和 cURL 7.47.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-http-version-2-0">
    <strong><code><a href="curl.constants.php#constant.curl-http-version-2-0">CURL_HTTP_VERSION_2_0</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 cURL 7.33.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-http-version-2-prior-knowledge">
    <strong><code><a href="curl.constants.php#constant.curl-http-version-2-prior-knowledge">CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.0.7 和 cURL 7.49.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-http-version-3">
    <strong><code><a href="curl.constants.php#constant.curl-http-version-3">CURL_HTTP_VERSION_3</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.4.0 和 cURL 7.66.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-http-version-3only">
    <strong><code><a href="curl.constants.php#constant.curl-http-version-3only">CURL_HTTP_VERSION_3ONLY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.4.0 和 cURL 7.88.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-http-version-none">
    <strong><code><a href="curl.constants.php#constant.curl-http-version-none">CURL_HTTP_VERSION_NONE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-ipresolve-v4">
    <strong><code><a href="curl.constants.php#constant.curl-ipresolve-v4">CURL_IPRESOLVE_V4</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     建立连接或从连接池中选一个时仅使用 IPv4 地址。自 cURL 7.10.8 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-ipresolve-v6">
    <strong><code><a href="curl.constants.php#constant.curl-ipresolve-v6">CURL_IPRESOLVE_V6</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     建立连接或从连接池中选一个时仅使用 IPv6 地址。自 cURL 7.10.8 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-ipresolve-whatever">
    <strong><code><a href="curl.constants.php#constant.curl-ipresolve-whatever">CURL_IPRESOLVE_WHATEVER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     使用系统允许的所有 IP 版本的地址。自 cURL 7.10.8 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-max-read-size">
    <strong><code><a href="curl.constants.php#constant.curl-max-read-size">CURL_MAX_READ_SIZE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.3.0 和 cURL 7.53.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-netrc-ignored">
    <strong><code><a href="curl.constants.php#constant.curl-netrc-ignored">CURL_NETRC_IGNORED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-netrc-optional">
    <strong><code><a href="curl.constants.php#constant.curl-netrc-optional">CURL_NETRC_OPTIONAL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-netrc-required">
    <strong><code><a href="curl.constants.php#constant.curl-netrc-required">CURL_NETRC_REQUIRED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-push-deny">
    <strong><code><a href="curl.constants.php#constant.curl-push-deny">CURL_PUSH_DENY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.1.0 和 cURL 7.44.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-push-ok">
    <strong><code><a href="curl.constants.php#constant.curl-push-ok">CURL_PUSH_OK</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.1.0 和 cURL 7.44.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-readfunc-pause">
    <strong><code><a href="curl.constants.php#constant.curl-readfunc-pause">CURL_READFUNC_PAUSE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 cURL 7.18.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-redir-post-301">
    <strong><code><a href="curl.constants.php#constant.curl-redir-post-301">CURL_REDIR_POST_301</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.0.7 和 cURL 7.18.2 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-redir-post-302">
    <strong><code><a href="curl.constants.php#constant.curl-redir-post-302">CURL_REDIR_POST_302</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.0.7 和 cURL 7.18.2 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-redir-post-303">
    <strong><code><a href="curl.constants.php#constant.curl-redir-post-303">CURL_REDIR_POST_303</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.0.7 和 cURL 7.25.1 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-redir-post-all">
    <strong><code><a href="curl.constants.php#constant.curl-redir-post-all">CURL_REDIR_POST_ALL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.0.7 和 cURL 7.18.2 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-rtspreq-announce">
    <strong><code><a href="curl.constants.php#constant.curl-rtspreq-announce">CURL_RTSPREQ_ANNOUNCE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     当客户端发送时，该方法会更改会话的描述。<code class="literal">ANNOUNCE</code>
     的作用类似于 HTTP PUT 或 POST，就像 <strong><code><a href="curl.constants.php#constant.curl-rtspreq-set-parameter">CURL_RTSPREQ_SET_PARAMETER</a></code></strong>
     一样。自 cURL 7.20.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-rtspreq-describe">
    <strong><code><a href="curl.constants.php#constant.curl-rtspreq-describe">CURL_RTSPREQ_DESCRIBE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     用于获取流的低级描述。应用程序应在 <code class="literal">Accept:</code>
     header 中注明其支持的格式。除非手动设置，否则 libcurl 会自动添加 <code class="literal">Accept:
     application/sdp</code>。如果使用了 <strong><code><a href="curl.constants.php#constant.curlopt-timecondition">CURLOPT_TIMECONDITION</a></code></strong>
     选项，时间条件（Time-condition）header 将添加到 DESCRIBE 请求中。自 cURL 7.20.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-rtspreq-get-parameter">
    <strong><code><a href="curl.constants.php#constant.curl-rtspreq-get-parameter">CURL_RTSPREQ_GET_PARAMETER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     从服务器检索参数。默认情况下，libcurl 会在所有非空请求中添加 <code class="literal">Content-Type:
     text/parameters</code> header，除非设置了自定义标头。<code class="literal">GET_PARAMETER</code>
     的作用与 HTTP 的 PUT 或 POST 相同。希望发送心跳消息的应用程序应使用空的
     <code class="literal">GET_PARAMETER</code> 请求。自 cURL 7.20.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-rtspreq-options">
    <strong><code><a href="curl.constants.php#constant.curl-rtspreq-options">CURL_RTSPREQ_OPTIONS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     用于检索服务器的可用方法。自 cURL 7.20.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-rtspreq-pause">
    <strong><code><a href="curl.constants.php#constant.curl-rtspreq-pause">CURL_RTSPREQ_PAUSE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     向服务器发送 <code class="literal">PAUSE</code> 命令。使用 <strong><code><a href="curl.constants.php#constant.curlopt-range">CURLOPT_RANGE</a></code></strong> 选项以及单个值来指示何时应停止流（例如
     npt=25）。自 cURL 7.20.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-rtspreq-play">
    <strong><code><a href="curl.constants.php#constant.curl-rtspreq-play">CURL_RTSPREQ_PLAY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     向服务器发送 <code class="literal">PLAY</code> 命令。使用
     <strong><code><a href="curl.constants.php#constant.curlopt-range">CURLOPT_RANGE</a></code></strong> 选项来修改播放时间（例如
     npt=10-15）。自 cURL 7.20.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-rtspreq-receive">
    <strong><code><a href="curl.constants.php#constant.curl-rtspreq-receive">CURL_RTSPREQ_RECEIVE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     将 RTSP 请求类型设置为此值以接收交替 RTP 数据。自 cURL 7.20.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-rtspreq-record">
    <strong><code><a href="curl.constants.php#constant.curl-rtspreq-record">CURL_RTSPREQ_RECORD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     用于告诉服务器记录会话。使用 <strong><code><a href="curl.constants.php#constant.curlopt-range">CURLOPT_RANGE</a></code></strong> 选项修改记录时间。自 cURL 7.20.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-rtspreq-setup">
    <strong><code><a href="curl.constants.php#constant.curl-rtspreq-setup">CURL_RTSPREQ_SETUP</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     用于初始化会话的传输层。自 cURL 7.20.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-rtspreq-set-parameter">
    <strong><code><a href="curl.constants.php#constant.curl-rtspreq-set-parameter">CURL_RTSPREQ_SET_PARAMETER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     在服务器上设置参数。自 cURL 7.20.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-rtspreq-teardown">
    <strong><code><a href="curl.constants.php#constant.curl-rtspreq-teardown">CURL_RTSPREQ_TEARDOWN</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     终止 RTSP 会话。简单地关闭连接不会终止 RTSP 会话，因为通过不同的连接控制 RTSP 会话是有效的。自 cURL 7.20.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-sslversion-default">
    <strong><code><a href="curl.constants.php#constant.curl-sslversion-default">CURL_SSLVERSION_DEFAULT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-sslversion-max-default">
    <strong><code><a href="curl.constants.php#constant.curl-sslversion-max-default">CURL_SSLVERSION_MAX_DEFAULT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.3.0 和 cURL 7.54.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-sslversion-max-none">
    <strong><code><a href="curl.constants.php#constant.curl-sslversion-max-none">CURL_SSLVERSION_MAX_NONE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.3.0 和 cURL 7.54.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-sslversion-max-tlsv1-0">
    <strong><code><a href="curl.constants.php#constant.curl-sslversion-max-tlsv1-0">CURL_SSLVERSION_MAX_TLSv1_0</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.3.0 和 cURL 7.54.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-sslversion-max-tlsv1-1">
    <strong><code><a href="curl.constants.php#constant.curl-sslversion-max-tlsv1-1">CURL_SSLVERSION_MAX_TLSv1_1</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.3.0 和 cURL 7.54.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-sslversion-max-tlsv1-2">
    <strong><code><a href="curl.constants.php#constant.curl-sslversion-max-tlsv1-2">CURL_SSLVERSION_MAX_TLSv1_2</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.3.0 和 cURL 7.54.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-sslversion-max-tlsv1-3">
    <strong><code><a href="curl.constants.php#constant.curl-sslversion-max-tlsv1-3">CURL_SSLVERSION_MAX_TLSv1_3</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.3.0 和 cURL 7.54.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-sslversion-sslv2">
    <strong><code><a href="curl.constants.php#constant.curl-sslversion-sslv2">CURL_SSLVERSION_SSLv2</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-sslversion-sslv3">
    <strong><code><a href="curl.constants.php#constant.curl-sslversion-sslv3">CURL_SSLVERSION_SSLv3</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-sslversion-tlsv1">
    <strong><code><a href="curl.constants.php#constant.curl-sslversion-tlsv1">CURL_SSLVERSION_TLSv1</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-sslversion-tlsv1-0">
    <strong><code><a href="curl.constants.php#constant.curl-sslversion-tlsv1-0">CURL_SSLVERSION_TLSv1_0</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-sslversion-tlsv1-1">
    <strong><code><a href="curl.constants.php#constant.curl-sslversion-tlsv1-1">CURL_SSLVERSION_TLSv1_1</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-sslversion-tlsv1-2">
    <strong><code><a href="curl.constants.php#constant.curl-sslversion-tlsv1-2">CURL_SSLVERSION_TLSv1_2</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-sslversion-tlsv1-3">
    <strong><code><a href="curl.constants.php#constant.curl-sslversion-tlsv1-3">CURL_SSLVERSION_TLSv1_3</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.3.0 和 cURL 7.52.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-timecond-ifmodsince">
    <strong><code><a href="curl.constants.php#constant.curl-timecond-ifmodsince">CURL_TIMECOND_IFMODSINCE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-timecond-ifunmodsince">
    <strong><code><a href="curl.constants.php#constant.curl-timecond-ifunmodsince">CURL_TIMECOND_IFUNMODSINCE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-timecond-lastmod">
    <strong><code><a href="curl.constants.php#constant.curl-timecond-lastmod">CURL_TIMECOND_LASTMOD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-timecond-none">
    <strong><code><a href="curl.constants.php#constant.curl-timecond-none">CURL_TIMECOND_NONE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">

    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-tlsauth-srp">
    <strong><code><a href="curl.constants.php#constant.curl-tlsauth-srp">CURL_TLSAUTH_SRP</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 cURL 7.21.4 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-altsvc">
    <strong><code><a href="curl.constants.php#constant.curl-version-altsvc">CURL_VERSION_ALTSVC</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.3.6 和 cURL 7.64.1 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-asynchdns">
    <strong><code><a href="curl.constants.php#constant.curl-version-asynchdns">CURL_VERSION_ASYNCHDNS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     异步 DNS 解析。自 PHP 7.3.0 和 cURL 7.10.7 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-brotli">
    <strong><code><a href="curl.constants.php#constant.curl-version-brotli">CURL_VERSION_BROTLI</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.3.0 和 cURL 7.57.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-conv">
    <strong><code><a href="curl.constants.php#constant.curl-version-conv">CURL_VERSION_CONV</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     字符转换支持。自 PHP 7.3.0 和 cURL 7.15.4 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-curldebug">
    <strong><code><a href="curl.constants.php#constant.curl-version-curldebug">CURL_VERSION_CURLDEBUG</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     调试内存跟踪支持。自 PHP 7.3.6 和 cURL 7.19.6 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-debug">
    <strong><code><a href="curl.constants.php#constant.curl-version-debug">CURL_VERSION_DEBUG</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     内置调试功能。自 PHP 7.3.0 和 cURL 7.10.6 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-gsasl">
    <strong><code><a href="curl.constants.php#constant.curl-version-gsasl">CURL_VERSION_GSASL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.76.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-gssapi">
    <strong><code><a href="curl.constants.php#constant.curl-version-gssapi">CURL_VERSION_GSSAPI</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     基于 GSS-API 库编译。自 PHP 7.3.0 和 cURL 7.38.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-gssnegotiate">
    <strong><code><a href="curl.constants.php#constant.curl-version-gssnegotiate">CURL_VERSION_GSSNEGOTIATE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     支持协商（Negotiate）身份验证。自 PHP 7.3.0 和 cURL 7.10.6 起可用（自 cURL 7.38.0 起弃用）
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-hsts">
    <strong><code><a href="curl.constants.php#constant.curl-version-hsts">CURL_VERSION_HSTS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.74.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-http2">
    <strong><code><a href="curl.constants.php#constant.curl-version-http2">CURL_VERSION_HTTP2</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     内置 HTTP2 支持。自 cURL 7.33.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-http3">
    <strong><code><a href="curl.constants.php#constant.curl-version-http3">CURL_VERSION_HTTP3</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.66.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-https-proxy">
    <strong><code><a href="curl.constants.php#constant.curl-version-https-proxy">CURL_VERSION_HTTPS_PROXY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.3.0 和 cURL 7.52.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-idn">
    <strong><code><a href="curl.constants.php#constant.curl-version-idn">CURL_VERSION_IDN</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     国际化域名支持。自 PHP 7.3.0 和 cURL 7.12.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-ipv6">
    <strong><code><a href="curl.constants.php#constant.curl-version-ipv6">CURL_VERSION_IPV6</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     启用 IPv6。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-kerberos4">
    <strong><code><a href="curl.constants.php#constant.curl-version-kerberos4">CURL_VERSION_KERBEROS4</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     Kerberos V4 身份验证支持。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-kerberos5">
    <strong><code><a href="curl.constants.php#constant.curl-version-kerberos5">CURL_VERSION_KERBEROS5</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     Kerberos V5 身份验证支持。自 PHP 7.0.7 和 cURL 7.40.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-largefile">
    <strong><code><a href="curl.constants.php#constant.curl-version-largefile">CURL_VERSION_LARGEFILE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     支持大于 2GB 的文件。自 cURL 7.33.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-libz">
    <strong><code><a href="curl.constants.php#constant.curl-version-libz">CURL_VERSION_LIBZ</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     存在 libz 功能。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-multi-ssl">
    <strong><code><a href="curl.constants.php#constant.curl-version-multi-ssl">CURL_VERSION_MULTI_SSL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 7.3.0 和 cURL 7.56.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-ntlm">
    <strong><code><a href="curl.constants.php#constant.curl-version-ntlm">CURL_VERSION_NTLM</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     NTLM 身份验证支持。自 PHP 7.3.0 和 cURL 7.10.6 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-ntlm-wb">
    <strong><code><a href="curl.constants.php#constant.curl-version-ntlm-wb">CURL_VERSION_NTLM_WB</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     支持 NTLM 委派给 winbind 助手。自 PHP 7.3.0 和 cURL 7.22.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-psl">
    <strong><code><a href="curl.constants.php#constant.curl-version-psl">CURL_VERSION_PSL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     Mozilla 的公共后缀列表，用于 cookie 域验证。自 PHP 7.3.6 和 cURL 7.47.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-spnego">
    <strong><code><a href="curl.constants.php#constant.curl-version-spnego">CURL_VERSION_SPNEGO</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     SPNEGO 身份验证支持。自 PHP 7.3.0 和 cURL 7.10.8 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-ssl">
    <strong><code><a href="curl.constants.php#constant.curl-version-ssl">CURL_VERSION_SSL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     存在 SSL 选项。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-sspi">
    <strong><code><a href="curl.constants.php#constant.curl-version-sspi">CURL_VERSION_SSPI</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     基于 Windows SSPI 编译。
     自 PHP 7.3.0 和 cURL 7.13.2 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-tlsauth-srp">
    <strong><code><a href="curl.constants.php#constant.curl-version-tlsauth-srp">CURL_VERSION_TLSAUTH_SRP</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     TLS-SRP 身份验证支持。自 PHP 7.3.0 和 cURL 7.21.4 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-unicode">
    <strong><code><a href="curl.constants.php#constant.curl-version-unicode">CURL_VERSION_UNICODE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.72.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-unix-sockets">
    <strong><code><a href="curl.constants.php#constant.curl-version-unix-sockets">CURL_VERSION_UNIX_SOCKETS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     Unix 域套接字支持。自 PHP 7.0.7 和 cURL 7.40.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-version-zstd">
    <strong><code><a href="curl.constants.php#constant.curl-version-zstd">CURL_VERSION_ZSTD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.2.0 和 cURL 7.72.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-writefunc-pause">
    <strong><code><a href="curl.constants.php#constant.curl-writefunc-pause">CURL_WRITEFUNC_PAUSE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 cURL 7.18.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-prereqfunc-ok">
    <strong><code><a href="curl.constants.php#constant.curl-prereqfunc-ok">CURL_PREREQFUNC_OK</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.4.0 和 cURL 7.80.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curl-prereqfunc-abort">
    <strong><code><a href="curl.constants.php#constant.curl-prereqfunc-abort">CURL_PREREQFUNC_ABORT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     自 PHP 8.4.0 和 cURL 7.80.0 起可用。
    </span>
   </td>
  </tr>
 </table>
 

 <table class="doctable table">
      <tr>
       <th>常量</th>
       <th>描述</th>
      </tr>
  <strong class="title"><span class="function"><a href="function.curl-setopt.php" class="function">curl_setopt()</a></span></strong>
  <tr>
   <td id="constant.curlopt-abstract-unix-socket">
    <strong><code><a href="curl.constants.php#constant.curlopt-abstract-unix-socket">CURLOPT_ABSTRACT_UNIX_SOCKET</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     允许使用抽象 Unix 域套接字而不是与主机建立 TCP 连接，并将路径设置为指定 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>。此选项与
     <strong><code><a href="curl.constants.php#constant.curlopt-unix-socket-path">CURLOPT_UNIX_SOCKET_PATH</a></code></strong> 具有相同的语义。这两个选项共享相同的存储，因此每个句柄只能设置其中一个。自
     PHP 7.3.0 和 cURL 7.53.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-accept-encoding">
    <strong><code><a href="curl.constants.php#constant.curlopt-accept-encoding">CURLOPT_ACCEPT_ENCODING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>，其中包含 HTTP 请求中发送的 <code class="literal">Accept-Encoding:</code> 标头的内容。设置为
     <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> 可禁用发送 <code class="literal">Accept-Encoding:</code> 标头。默认为 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>。自 cURL 7.21.6 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-accepttimeout-ms">
    <strong><code><a href="curl.constants.php#constant.curlopt-accepttimeout-ms">CURLOPT_ACCEPTTIMEOUT_MS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     使用活跃 FTP 连接时等待服务器连接回 cURL 的最大毫秒数。此选项接受任何可以转换为有效 <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
     的值。默认为 <code class="literal">60000</code> 毫秒。自 cURL 7.24.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-address-scope">
    <strong><code><a href="curl.constants.php#constant.curlopt-address-scope">CURLOPT_ADDRESS_SCOPE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     连接到 IPv6 地址时使用的范围 ID 值。此选项接受任何可以转换为有效 <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
     的值。默认为 <code class="literal">0</code>。自 cURL 7.19.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-altsvc">
    <strong><code><a href="curl.constants.php#constant.curlopt-altsvc">CURLOPT_ALTSVC</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     传递 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>，其中包含 cURL 的文件名，用作 Alt-Svc 缓存文件，从中读取现有缓存内容，并可能在传输后将其写回，除非通过
     <strong><code><a href="curl.constants.php#constant.curlopt-altsvc-ctrl">CURLOPT_ALTSVC_CTRL</a></code></strong> 设置了 <strong><code><a href="curl.constants.php#constant.curlopt-altsvc-ctrl">CURLOPT_ALTSVC_CTRL</a></code></strong>。自 PHP 8.2.0 和 cURL 7.64.1 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-altsvc-ctrl">
    <strong><code><a href="curl.constants.php#constant.curlopt-altsvc-ctrl">CURLOPT_ALTSVC_CTRL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     使用正确的功能集填充位掩码，以指示 cURL 如何处理使用此句柄进行传输的 Alt-Svc。cURL 仅接受通过 HTTPS 传递的 Alt-Svc
     header，并且仅在替代源正确托管于 HTTPS 上时才会完成对该源的请求。设置任意位（bit）将启用 alt-svc 引擎。可设置为任意
     <strong><code><a href="curl.constants.php#constant.curlaltsvc-h1">CURLALTSVC_<span class="replaceable">*</span></a></code></strong> 常量，Alt-Svc 处理默认为禁用。自
     PHP 8.2.0 和 cURL 7.64.1 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-append">
    <strong><code><a href="curl.constants.php#constant.curlopt-append">CURLOPT_APPEND</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     将此选项设置为 <code class="literal">1</code> 时，FTP 上传将会追加到远程文件，而不是覆盖。默认值为 <code class="literal">0</code>。自 cURL 7.17.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-autoreferer">
    <strong><code><a href="curl.constants.php#constant.curlopt-autoreferer">CURLOPT_AUTOREFERER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时将根据 <code class="literal">Location:</code> 重定向时，自动设置 header 中的 <code class="literal">Referer:</code>
     信息。默认是 <code class="literal">0</code>。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-aws-sigv4">
    <strong><code><a href="curl.constants.php#constant.curlopt-aws-sigv4">CURLOPT_AWS_SIGV4</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     在 HTTP(S) header 提供 <span class="type"><a href="language.types.string.php" class="type string">string</a></span> 形式的 AWS V4 签名认证。此选项会覆盖 <strong><code><a href="curl.constants.php#constant.curlopt-httpauth">CURLOPT_HTTPAUTH</a></code></strong>
     中设置的其他认证类型。该方法不能与其他认证类型结合使用。自 PHP 8.2.0 和 cURL 7.75.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-binarytransfer">
    <strong><code><a href="curl.constants.php#constant.curlopt-binarytransfer">CURLOPT_BINARYTRANSFER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     该常量自 PHP 5.5.0 起不再使用。自 PHP 8.4.0 起弃用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-buffersize">
    <strong><code><a href="curl.constants.php#constant.curlopt-buffersize">CURLOPT_BUFFERSIZE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     每次读取要使用的缓冲区大小。但不能保证此请求一定会得到满足。此选项接受任何可以转换为有效 <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
     的值。默认为 <strong><code>CURL_MAX_WRITE_SIZE</code></strong>（当前为 16kB）。自 cURL 7.10 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-cainfo">
    <strong><code><a href="curl.constants.php#constant.curlopt-cainfo">CURLOPT_CAINFO</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     包含一个或多个证书的文件名称的 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>，用于验证对等方。这仅在与
     <strong><code><a href="curl.constants.php#constant.curlopt-ssl-verifypeer">CURLOPT_SSL_VERIFYPEER</a></code></strong> 结合使用时才有意义。可能需要绝对路径。自
     cURL 7.4.2 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-cainfo-blob">
    <strong><code><a href="curl.constants.php#constant.curlopt-cainfo-blob">CURLOPT_CAINFO_BLOB</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>，包含用于验证对等方的一个或多个证书的 PEM 文件名。此选项会覆盖
     <strong><code><a href="curl.constants.php#constant.curlopt-cainfo">CURLOPT_CAINFO</a></code></strong>。自 PHP 8.2.0 和 cURL 7.77.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-capath">
    <strong><code><a href="curl.constants.php#constant.curlopt-capath">CURLOPT_CAPATH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     包含多个 CA 证书的目录 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>。此选项需与 <strong><code><a href="curl.constants.php#constant.curlopt-ssl-verifypeer">CURLOPT_SSL_VERIFYPEER</a></code></strong>
     一起使用。自 cURL 7.9.8 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ca-cache-timeout">
    <strong><code><a href="curl.constants.php#constant.curlopt-ca-cache-timeout">CURLOPT_CA_CACHE_TIMEOUT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置内存中已缓存的 CA 证书存储可保留并重新用于新连接的最长时间（以秒为单位）。此选项接受任何可转换为有效
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> 的值。默认值为 <code class="literal">86400</code>（24 小时）。自 PHP 8.3.0 和 cURL 7.87.0 起可用
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-certinfo">
    <strong><code><a href="curl.constants.php#constant.curlopt-certinfo">CURLOPT_CERTINFO</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 将在安全传输时输出 SSL 证书信息到 <strong><code><a href="reserved.constants.php#constant.stderr">STDERR</a></code></strong>。需要开启
     <strong><code><a href="curl.constants.php#constant.curlopt-verbose">CURLOPT_VERBOSE</a></code></strong> 才有效。默认为 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。自 cURL 7.19.1 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-connecttimeout">
    <strong><code><a href="curl.constants.php#constant.curlopt-connecttimeout">CURLOPT_CONNECTTIMEOUT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     在尝试连接时等待的秒数。设置为 0，则无限等待。此选项接受任何可以转换为有效 <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
     的值。默认 <code class="literal">300</code>。自 cURL 7.7.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-connecttimeout-ms">
    <strong><code><a href="curl.constants.php#constant.curlopt-connecttimeout-ms">CURLOPT_CONNECTTIMEOUT_MS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     尝试连接等待的时间，以毫秒为单位。设置为 <code class="literal">0</code>，则无限等待。如果 cURL
     编译时使用系统标准的名称解析器（standard system name
     resolver），那部分的连接仍旧使用以秒计的超时解决方案，最小超时时间还是一秒钟。此选项接受任何可以转换为有效 <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
     的值。默认 <code class="literal">300000</code>。自 cURL 7.16.2 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-connect-only">
    <strong><code><a href="curl.constants.php#constant.curlopt-connect-only">CURLOPT_CONNECT_ONLY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 将让库执行所有需要的代理、验证、连接过程，但不传输数据。此选项用于
     HTTP、SMTP 和 POP3。默认是 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。自 cURL 7.15.2 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-connect-to">
    <strong><code><a href="curl.constants.php#constant.curlopt-connect-to">CURLOPT_CONNECT_TO</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     连接到指定主机和端口，从而替换 URL 中的主机和端口。接受 <span class="type"><a href="language.types.string.php" class="type string">string</a></span> 格式的
     <span class="type"><a href="language.types.array.php" class="type array">array</a></span>：<code class="literal">HOST:PORT:CONNECT-TO-HOST:CONNECT-TO-PORT</code>。自
     PHP 7.0.7 和 cURL 7.49.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-cookie">
    <strong><code><a href="curl.constants.php#constant.curlopt-cookie">CURLOPT_COOKIE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     包含 HTTP 请求中使用的 <code class="literal">Cookie: </code> header 内容的 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>。请注意，多个 Cookie
     之间用分号分隔，后跟一个空格（例如，<code class="literal">fruit=apple; colour=red</code>）。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-cookiefile">
    <strong><code><a href="curl.constants.php#constant.curlopt-cookiefile">CURLOPT_COOKIEFILE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     包含 cookie 数据的文件的名称 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>。cookie 文件可以是 Netscape 格式，也可以只是转储到文件中的纯
     HTTP 样式标头。如果名称为空 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>，则不会加载任何 cookie，但仍启用 cookie 处理。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-cookiejar">
    <strong><code><a href="curl.constants.php#constant.curlopt-cookiejar">CURLOPT_COOKIEJAR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>，包含调用句柄的析构函数时用于保存所有内部 cookie 的文件的名称。自 cURL 7.9.0 起可用。
     <div class="warning"><strong class="warning">警告</strong>
      <p class="simpara">
       自 PHP 8.0.0 起，<span class="function"><a href="function.curl-close.php" class="function">curl_close()</a></span> 为空操作（什么都不做），<em>不会</em>销毁句柄。如果需要在句柄自动销毁之前写入
       cookie，使用 <code class="code">curl_setopt($ch, CURLOPT_COOKIELIST, &quot;FLUSH&quot;);</code>。
      </p>
     </div>
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-cookielist">
    <strong><code><a href="curl.constants.php#constant.curlopt-cookielist">CURLOPT_COOKIELIST</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     cookie <span class="type"><a href="language.types.string.php" class="type string">string</a></span>（即 Netscape/Mozilla 的单行格式，或常规 HTTP 样式的 Set-Cookie header）将单个
     cookie 添加到内部 cookie 存储中。
     <span class="simplelist">
       <code class="literal">ALL</code>
       擦除内存中保存的所有 cookie
      , 
       <code class="literal">SESS</code>
       擦除内存中保存的所有会话 cookie
      , 
       <code class="literal">FLUSH</code>
       将所有已知的 cookie 写入到 <strong><code><a href="curl.constants.php#constant.curlopt-cookiejar">CURLOPT_COOKIEJAR</a></code></strong> 指定的文件
      , 
       <code class="literal">RELOAD</code>
       从 <strong><code><a href="curl.constants.php#constant.curlopt-cookiefile">CURLOPT_COOKIEFILE</a></code></strong> 指定的文件中加载所有 cookie
      </span>.
     自 cURL 7.14.1 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-cookiesession">
    <strong><code><a href="curl.constants.php#constant.curlopt-cookiesession">CURLOPT_COOKIESESSION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时将开启新的 cookie“会话”。将强制 cURL 忽略之前会话时存的其他 cookie。cURL
     在默认情况下无论是否为会话，都会储存、加载所有 cookie。会话 cookie
     是指没有过期时间，只存活在会话之中。自 cURL 7.9.7 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-crlf">
    <strong><code><a href="curl.constants.php#constant.curlopt-crlf">CURLOPT_CRLF</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 表示将 Unix 换行符转换成 CRLF 换行符。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-crlfile">
    <strong><code><a href="curl.constants.php#constant.curlopt-crlfile">CURLOPT_CRLFILE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     传递 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>，指定包含 CRL（证书吊销列表）（PEM 格式）的文件名，用于在 SSL
     交换期间进行证书验证。当 cURL 构建为使用 GnuTLS 时，无法影响传递的 CRL 在验证过程中的使用。当
     cURL 构建为支持 OpenSSL 时，会同时设置 <code class="literal">X509_V_FLAG_CRL_CHECK</code> 和
     <code class="literal">X509_V_FLAG_CRL_CHECK_ALL</code>，要求在传递 CRL 文件时对证书链的所有元素进行
     CRL 检查。另请注意，由于 OpenSSL 的 bug，自 cURL 7.71.0 起，<strong><code><a href="curl.constants.php#constant.curlopt-crlfile">CURLOPT_CRLFILE</a></code></strong>
     隐含 <strong><code><a href="curl.constants.php#constant.curlsslopt-no-partialchain">CURLSSLOPT_NO_PARTIALCHAIN</a></code></strong>。自 cURL 7.19.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-customrequest">
    <strong><code><a href="curl.constants.php#constant.curlopt-customrequest">CURLOPT_CUSTOMREQUEST</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     HTTP 请求时，使用自定义的请求方法来代替 <code class="literal">GET</code> 或 <code class="literal">HEAD</code>。对
     <code class="literal">DELETE</code> 或者其他更隐蔽的 HTTP 请求有用。有效值如 <code class="literal">GET</code>、<code class="literal">POST</code>，<code class="literal">CONNECT</code>
     等等；也就是说，不要在这里输入整行 HTTP 请求。例如输入 <code class="literal">GET /index.html HTTP/1.0\r\n\r\n</code>
     是不正确的。此选项接受 <span class="type"><a href="language.types.string.php" class="type string">string</a></span> 或 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>。自 cURL 7.1.0 起可用。
     <blockquote class="note"><p><strong class="note">注意</strong>: 
      <p class="para">
       在没有首先确保服务器支持自定义请求方法的情况下，不要执行此操作。
      </p>
     </p></blockquote>
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-default-protocol">
    <strong><code><a href="curl.constants.php#constant.curlopt-default-protocol">CURLOPT_DEFAULT_PROTOCOL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     URL 缺少协议的时候，使用 <span class="type"><a href="language.types.string.php" class="type string">string</a></span> 格式的默认协议。自 PHP 7.0.7 和 cURL 7.45.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-dirlistonly">
    <strong><code><a href="curl.constants.php#constant.curlopt-dirlistonly">CURLOPT_DIRLISTONLY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     将此选项设置为 <code class="literal">1</code> 时，其效果会因所使用的协议而异。基于 FTP 和 SFTP 的 URL
     将仅列出目录中的文件名。POP3 将列出 POP3 服务器上的电子邮件或邮件列表。对于 FILE
     协议，此选项无效，因为在此模式下会始终列出目录。将此选项与 <strong><code><a href="curl.constants.php#constant.curlopt-wildcardmatch">CURLOPT_WILDCARDMATCH</a></code></strong>
     一起使用时，后者将不会产生任何效果。默认值为 <code class="literal">0</code>。自 cURL 7.17.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-disallow-username-in-url">
    <strong><code><a href="curl.constants.php#constant.curlopt-disallow-username-in-url">CURLOPT_DISALLOW_USERNAME_IN_URL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时，URL 中不允许包含 username。默认情况下允许 username。自 PHP 7.3.0 和 cURL 7.61.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-dns-cache-timeout">
    <strong><code><a href="curl.constants.php#constant.curlopt-dns-cache-timeout">CURLOPT_DNS_CACHE_TIMEOUT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置在内存中缓存 DNS 的时间，默认为 <code class="literal">120</code> 秒（2 分钟）。此选项接受任何可以转换为有效
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> 的值。自 cURL 7.9.3 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-dns-interface">
    <strong><code><a href="curl.constants.php#constant.curlopt-dns-interface">CURLOPT_DNS_INTERFACE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置 DNS 解析器应绑定到的网络接口名称。该名称必须是接口名称（而非地址）。此选项接受
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span> 或 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>。自 PHP 7.0.7 和 cURL 7.33.0 起可用
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-dns-local-ip4">
    <strong><code><a href="curl.constants.php#constant.curlopt-dns-local-ip4">CURLOPT_DNS_LOCAL_IP4</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置解析器应绑定的本地 IPv4 地址。参数应包含单一的数值型 IPv4 地址。此选项接受
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span> 或 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>。自 PHP 7.0.7 和 cURL 7.33.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-dns-local-ip6">
    <strong><code><a href="curl.constants.php#constant.curlopt-dns-local-ip6">CURLOPT_DNS_LOCAL_IP6</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置解析器应绑定的本地 IPv6 地址。参数应包含单一的数值型 IPv6 地址。此选项接受
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span> 或 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>。自 PHP 7.0.7 和 cURL 7.33.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-dns-servers">
    <strong><code><a href="curl.constants.php#constant.curlopt-dns-servers">CURLOPT_DNS_SERVERS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     传递包含以逗号分隔的 DNS 服务器列表的 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>，用于替代系统默认值（例如
     <code class="literal">192.168.1.100,192.168.1.101:8080</code>）。自 cURL 7.24.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-dns-shuffle-addresses">
    <strong><code><a href="curl.constants.php#constant.curlopt-dns-shuffle-addresses">CURLOPT_DNS_SHUFFLE_ADDRESSES</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时，将打乱所有返回地址的顺序，使得在解析名称并返回多个 IP 地址时，这些地址将以随机顺序使用。这可能导致
     IPv4 在 IPv6 之前被使用，或者反之。自 PHP 7.3.0 和 cURL 7.60.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-dns-use-global-cache">
    <strong><code><a href="curl.constants.php#constant.curlopt-dns-use-global-cache">CURLOPT_DNS_USE_GLOBAL_CACHE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 表示使用全局 DNS 缓存。此选项非线程安全。如果 PHP 是为非线程使用（CLI、FCGI、Apache2-Prefork
     等）构建的，则默认情况下会有条件性的启用此选项。自 cURL 7.9.3 起可用，自 cURL 7.11.1 起弃用。自
     PHP 8.4 起，此选项不再有效。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-doh-ssl-verifyhost">
    <strong><code><a href="curl.constants.php#constant.curlopt-doh-ssl-verifyhost">CURLOPT_DOH_SSL_VERIFYHOST</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <code class="literal">2</code> 时，将针对主机名验证 DNS-over-HTTPS 服务器的 SSL 证书名称字段。自 PHP 8.2.0 和 cURL 7.76.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-doh-ssl-verifypeer">
    <strong><code><a href="curl.constants.php#constant.curlopt-doh-ssl-verifypeer">CURLOPT_DOH_SSL_VERIFYPEER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <code class="literal">1</code> 以启用，设置为 <code class="literal">0</code> 以禁用对 DNS-over-HTTPS
     服务器 SSL 证书真实性的验证。自 PHP 8.2.0 和 cURL 7.76.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-doh-ssl-verifystatus">
    <strong><code><a href="curl.constants.php#constant.curlopt-doh-ssl-verifystatus">CURLOPT_DOH_SSL_VERIFYSTATUS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <code class="literal">1</code> 以启用，设置为 <code class="literal">0</code> 以禁用通过“Certificate Status
     Request”TLS 扩展（OCSP 快速验证）对 DNS-over-HTTPS 服务器证书状态的验证。自 PHP 8.2.0 和 cURL 7.76.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-doh-url">
    <strong><code><a href="curl.constants.php#constant.curlopt-doh-url">CURLOPT_DOH_URL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     提供 DNS-over-HTTPS 的 URL。此选项接受 <span class="type"><a href="language.types.string.php" class="type string">string</a></span> 或 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>。自 PHP 8.1.0 和 cURL 7.62.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-egdsocket">
    <strong><code><a href="curl.constants.php#constant.curlopt-egdsocket">CURLOPT_EGDSOCKET</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     类似于 <strong><code><a href="curl.constants.php#constant.curlopt-random-file">CURLOPT_RANDOM_FILE</a></code></strong>，但指定的是熵收集守护进程（Entropy Gathering
     Daemon）套接字的文件名。自 cURL 7.7.0 起可用，并自 cURL 7.84.0 起弃用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-encoding">
    <strong><code><a href="curl.constants.php#constant.curlopt-encoding">CURLOPT_ENCODING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <code class="literal">Accept-Encoding: </code> header 的内容，以 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
     形式表示。启用响应的解码功能。支持的编码类型包括：<span class="simplelist"><code class="literal">identity</code>, <code class="literal">deflate</code>, <code class="literal">gzip</code></span>。如果设置为空 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>，则会发送包含所有支持的编码类型的
     header。自 cURL 7.10 起可用，并自 cURL 7.21.6 起被弃用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-expect-100-timeout-ms">
    <strong><code><a href="curl.constants.php#constant.curlopt-expect-100-timeout-ms">CURLOPT_EXPECT_100_TIMEOUT_MS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <code class="literal">Expect: 100-continue</code> 响应的超时时间，以毫秒为单位。默认为 <code class="literal">1000</code>
     毫秒。此选项接受任何可以转换为有效 <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> 的值。自 PHP 7.0.7 和 cURL 7.36.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-failonerror">
    <strong><code><a href="curl.constants.php#constant.curlopt-failonerror">CURLOPT_FAILONERROR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     当 HTTP 状态码大于等于 <code class="literal">400</code>，<strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 将显示错误详情。默认情况下将返回页面，忽略
     HTTP 代码。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-file">
    <strong><code><a href="curl.constants.php#constant.curlopt-file">CURLOPT_FILE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     接受文件句柄 <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>，用于指定传输内容应写入的文件。默认值为
     <strong><code><a href="reserved.constants.php#constant.stdout">STDOUT</a></code></strong>（浏览器窗口）。自 cURL 7.1.0 起可用，并自 cURL 7.9.7 起被弃用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-filetime">
    <strong><code><a href="curl.constants.php#constant.curlopt-filetime">CURLOPT_FILETIME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时，会尝试获取远程文档中的修改时间信息。此值可通过 <span class="function"><a href="function.curl-getinfo.php" class="function">curl_getinfo()</a></span>
     函数的 <code class="parameter">CURLINFO_FILETIME</code> 选项获取。自 cURL 7.5.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-fnmatch-function">
    <strong><code><a href="curl.constants.php#constant.curlopt-fnmatch-function">CURLOPT_FNMATCH_FUNCTION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     传递用于通配符匹配的 <span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span>。回调函数的签名应为：
     <div class="methodsynopsis dc-description">
      <span class="methodname"><span class="replaceable">callback</span></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$curlHandle</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$pattern</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$string</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

     <dl>
      
       <dt><code class="parameter">curlHandle</code></dt>
       <dd>
        <span class="simpara">
         cURL 句柄。
        </span>
       </dd>
      
      
       <dt><code class="parameter">pattern</code></dt>
       <dd>
        <span class="simpara">
         通配符模式。
        </span>
       </dd>
      
      
       <dt><code class="parameter">string</code></dt>
       <dd>
        <span class="simpara">
         用于运行通配符模式匹配的 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>。
        </span>
       </dd>
      
     </dl>
     如果模式匹配 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>，回调函数应返回 <strong><code><a href="curl.constants.php#constant.curl-fnmatchfunc-match">CURL_FNMATCHFUNC_MATCH</a></code></strong>；如果不匹配，返回
     <strong><code><a href="curl.constants.php#constant.curl-fnmatchfunc-nomatch">CURL_FNMATCHFUNC_NOMATCH</a></code></strong>；如果发生错误，返回
     <strong><code><a href="curl.constants.php#constant.curl-fnmatchfunc-fail">CURL_FNMATCHFUNC_FAIL</a></code></strong>。自 cURL 7.21.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-followlocation">
    <strong><code><a href="curl.constants.php#constant.curlopt-followlocation">CURLOPT_FOLLOWLOCATION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时将会根据服务器返回 HTTP header 中的 <code class="literal">Location: </code> 重定向。参见
      <strong><code><a href="curl.constants.php#constant.curlopt-maxredirs">CURLOPT_MAXREDIRS</a></code></strong>。当 <a href="ini.core.php#ini.open-basedir" class="link">open_basedir</a> 启用时，此常量无效。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-forbid-reuse">
    <strong><code><a href="curl.constants.php#constant.curlopt-forbid-reuse">CURLOPT_FORBID_REUSE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 后，在完成交互以后强制断开连接，不能在连接池中重用。自 cURL 7.7.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-fresh-connect">
    <strong><code><a href="curl.constants.php#constant.curlopt-fresh-connect">CURLOPT_FRESH_CONNECT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 强制获取新连接，而不是缓存中的连接。自 cURL 7.7.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ftpappend">
    <strong><code><a href="curl.constants.php#constant.curlopt-ftpappend">CURLOPT_FTPAPPEND</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时为追加写入文件，而不是覆盖。自 cURL 7.1.0 起可用并于 cURL 7.16.4 起弃用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ftpascii">
    <strong><code><a href="curl.constants.php#constant.curlopt-ftpascii">CURLOPT_FTPASCII</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="curl.constants.php#constant.curlopt-transfertext">CURLOPT_TRANSFERTEXT</a></code></strong> 的别名。请改用 <strong><code><a href="curl.constants.php#constant.curlopt-transfertext">CURLOPT_TRANSFERTEXT</a></code></strong>。自
     cURL 7.1 起可用，自 cURL 7.11.1 起弃用，最后在 cURL 7.15.5 中可用。自 PHP 7.3.0 起移除。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ftplistonly">
    <strong><code><a href="curl.constants.php#constant.curlopt-ftplistonly">CURLOPT_FTPLISTONLY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时只列出 FTP 目录的名称。自 cURL 7.1.0 起可用并于 cURL 7.16.4 起弃用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ftpport">
    <strong><code><a href="curl.constants.php#constant.curlopt-ftpport">CURLOPT_FTPPORT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     用于获取 FTP <code class="literal">PORT</code> 指令所使用的 IP 地址的 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>。<code class="literal">PORT</code>
     指令会告知远程服务器连接到指定 IP 地址。该 <span class="type"><a href="language.types.string.php" class="type string">string</a></span> 可以是纯 IP 地址、主机名、网络接口名称（在
     Unix 系统下），或者仅为一个短横线 <code class="literal">-</code>，以使用系统的默认 IP 地址。此选项接受 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
     或 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ftpsslauth">
    <strong><code><a href="curl.constants.php#constant.curlopt-ftpsslauth">CURLOPT_FTPSSLAUTH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     将 FTP over SSL 身份验证方法（如果已启用）设置为任何 <strong><code><a href="curl.constants.php#constant.curlftpauth-default">CURLFTPAUTH_<span class="replaceable">*</span></a></code></strong>
     常量。默认 <strong><code><a href="curl.constants.php#constant.curlftpauth-default">CURLFTPAUTH_DEFAULT</a></code></strong>。自 cURL 7.12.2 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ftp-account">
    <strong><code><a href="curl.constants.php#constant.curlopt-ftp-account">CURLOPT_FTP_ACCOUNT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     传递 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>，将通过 FTP（使用 <code class="literal">ACCT</code>
     命令）在提供用户名和密码后作为账户信息发送到服务器。设置为 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> 可禁用发送账户信息。默认值为
     <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>。自 cURL 7.13.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ftp-alternative-to-user">
    <strong><code><a href="curl.constants.php#constant.curlopt-ftp-alternative-to-user">CURLOPT_FTP_ALTERNATIVE_TO_USER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     传递 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>，将在 <code class="literal">USER/PASS</code> 协商失败时用于尝试通过
     FTP 进行身份验证。自 cURL 7.15.5 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ftp-create-missing-dirs">
    <strong><code><a href="curl.constants.php#constant.curlopt-ftp-create-missing-dirs">CURLOPT_FTP_CREATE_MISSING_DIRS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时在 FTP 操作遇到当前不存在的路径时会创建缺失的目录。自 cURL 7.10.7 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ftp-filemethod">
    <strong><code><a href="curl.constants.php#constant.curlopt-ftp-filemethod">CURLOPT_FTP_FILEMETHOD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     告知 cURL 使用哪种方法访问 FTP(S) 服务器上的文件。可能的值为任一 <strong><code><a href="curl.constants.php#constant.curlftpmethod-default">CURLFTPMETHOD_<span class="replaceable">*</span></a></code></strong>
     常量。默认值为 <strong><code><a href="curl.constants.php#constant.curlftpmethod-multicwd">CURLFTPMETHOD_MULTICWD</a></code></strong>。自 cURL 7.15.1 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ftp-response-timeout">
    <strong><code><a href="curl.constants.php#constant.curlopt-ftp-response-timeout">CURLOPT_FTP_RESPONSE_TIMEOUT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     cURL 等待 FTP 服务器响应的超时时间，以秒为单位。此选项会覆盖 <strong><code><a href="curl.constants.php#constant.curlopt-timeout">CURLOPT_TIMEOUT</a></code></strong>。该选项接受任何可转换为有效
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> 的值。自 PHP 8.4.0 起，已替换此选项为 <strong><code><a href="curl.constants.php#constant.curlopt-server-response-timeout">CURLOPT_SERVER_RESPONSE_TIMEOUT</a></code></strong>。自
     cURL 7.10.8 起可用，并自 cURL 7.85.0 起被弃用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ftp-skip-pasv-ip">
    <strong><code><a href="curl.constants.php#constant.curlopt-ftp-skip-pasv-ip">CURLOPT_FTP_SKIP_PASV_IP</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     如果此选项设置为 <code class="literal">1</code>，cURL 将不会使用服务器在 cURL <code class="literal">PASV</code> 命令时于 227 响应中建议的 IP
     地址，而是使用其用于连接的 IP 地址。cURL 不会忽略从 227 响应中接收到的端口号。自 cURL 7.74.0 起默认值为
     <code class="literal">1</code>，之前版本默认值为 <code class="literal">0</code>。自 cURL 7.15.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ftp-ssl">
    <strong><code><a href="curl.constants.php#constant.curlopt-ftp-ssl">CURLOPT_FTP_SSL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     自 cURL 7.11.0 起可用，并自 cURL 7.16.4 起弃用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ftp-ssl-ccc">
    <strong><code><a href="curl.constants.php#constant.curlopt-ftp-ssl-ccc">CURLOPT_FTP_SSL_CCC</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     此选项使 cURL 使用 CCC（Clear Command Channel），在认证完成后关闭 SSL/TLS 层，从而使控制通道的其余通信变为未加密。使用
     <strong><code><a href="curl.constants.php#constant.curlftpssl-ccc-active">CURLFTPSSL_CCC_<span class="replaceable">*</span></a></code></strong> 常量中的一个。默认值为
     <strong><code><a href="curl.constants.php#constant.curlftpssl-ccc-none">CURLFTPSSL_CCC_NONE</a></code></strong>。自 cURL 7.16.1 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ftp-use-eprt">
    <strong><code><a href="curl.constants.php#constant.curlopt-ftp-use-eprt">CURLOPT_FTP_USE_EPRT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时，当 FTP 下载时，使用 <code class="literal">EPRT</code> (和 <code class="literal">LPRT</code>)命令。设置为 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>
     时禁用 <code class="literal">EPRT</code> 和 <code class="literal">LPRT</code>，仅仅使用 <code class="literal">PORT</code> 命令。自
     cURL 7.10.5 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ftp-use-epsv">
    <strong><code><a href="curl.constants.php#constant.curlopt-ftp-use-epsv">CURLOPT_FTP_USE_EPSV</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时，在 FTP 传输过程中，回到 <code class="literal">PASV</code> 模式前，先尝试 <code class="literal">EPSV</code> 命令。设置为
     <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> 时禁用 <code class="literal">EPSV</code>。自 cURL 7.9.2 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ftp-use-pret">
    <strong><code><a href="curl.constants.php#constant.curlopt-ftp-use-pret">CURLOPT_FTP_USE_PRET</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <code class="literal">1</code> 时，在 <code class="literal">PASV</code>（和 <code class="literal">EPSV</code>）之前发送
     <code class="literal">PRET</code> 命令。在使用主动 FTP 传输模式时无效。默认值为 <code class="literal">0</code>。自 cURL 7.20.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-gssapi-delegation">
    <strong><code><a href="curl.constants.php#constant.curlopt-gssapi-delegation">CURLOPT_GSSAPI_DELEGATION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="curl.constants.php#constant.curlgssapi-delegation-flag">CURLGSSAPI_DELEGATION_FLAG</a></code></strong> 以允许无条件的 GSSAPI 凭证委派。设置为
     <strong><code><a href="curl.constants.php#constant.curlgssapi-delegation-policy-flag">CURLGSSAPI_DELEGATION_POLICY_FLAG</a></code></strong> 时，仅在服务票据中设置了
     <code class="literal">OK-AS-DELEGATE</code> flag 时才进行委派。默认值为
     <strong><code>CURLGSSAPI_DELEGATION_NONE</code></strong>。自 cURL 7.22.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-happy-eyeballs-timeout-ms">
    <strong><code><a href="curl.constants.php#constant.curlopt-happy-eyeballs-timeout-ms">CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     为“快乐眼球”算法设置 IPv6 的起始优先时间。“快乐眼球”算法会尝试同时连接双栈主机的 IPv4 和 IPv6 地址，优先选择
     IPv6，持续时间为指定的超时毫秒数。默认值为 <strong><code>CURL_HET_DEFAULT</code></strong>，当前为 200
     毫秒。此选项接受任何可转换为有效整数的值。自 PHP 7.3.0 和 cURL 7.59.0 起可用
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-haproxyprotocol">
    <strong><code><a href="curl.constants.php#constant.curlopt-haproxyprotocol">CURLOPT_HAPROXYPROTOCOL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时，在连接开始时发送 HAProxy <code class="literal">PROXY</code> 协议 v1 header。默认行为是不发送此头部。自
     PHP 7.3.0 和 cURL 7.60.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-header">
    <strong><code><a href="curl.constants.php#constant.curlopt-header">CURLOPT_HEADER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 以将 header 包含在发送到 <strong><code><a href="curl.constants.php#constant.curlopt-writefunction">CURLOPT_WRITEFUNCTION</a></code></strong>
     定义的回调的输出中。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-headerfunction">
    <strong><code><a href="curl.constants.php#constant.curlopt-headerfunction">CURLOPT_HEADERFUNCTION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     具有以下签名的 <span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span>：
     <div class="methodsynopsis dc-description">
      <span class="methodname"><span class="replaceable">callback</span></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$curlHandle</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$headerData</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

     <dl>
      
       <dt><code class="parameter">curlHandle</code></dt>
       <dd>
        <span class="simpara">
         cURL 句柄。
        </span>
       </dd>
      
      
       <dt><code class="parameter">headerData</code></dt>
       <dd>
        <span class="simpara">
         回调函数必须写入的 header 数据。
        </span>
       </dd>
      
     </dl>
     回调应返回写入的字节数。自 cURL 7.7.2 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-headeropt">
    <strong><code><a href="curl.constants.php#constant.curlopt-headeropt">CURLOPT_HEADEROPT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     将 HTTP header 同时发送到代理和主机或单独发送。可能的值是 <strong><code><a href="curl.constants.php#constant.curlheader-separate">CURLHEADER_<span class="replaceable">*</span></a></code></strong>
     常量。自 cURL 7.42.1 起默认 <strong><code><a href="curl.constants.php#constant.curlheader-separate">CURLHEADER_SEPARATE</a></code></strong>，在此之前默认为
     <strong><code><a href="curl.constants.php#constant.curlheader-unified">CURLHEADER_UNIFIED</a></code></strong>。自 PHP 7.0.7 和 cURL 7.37.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-hsts">
    <strong><code><a href="curl.constants.php#constant.curlopt-hsts">CURLOPT_HSTS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     包含 HSTS（HTTP 严格传输安全）缓存文件名的<span class="type"><a href="language.types.string.php" class="type string">string</a></span>，或为 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> 以允许在不读取或不写入任何文件的情况下使用
     HSTS，并清除用于读取 HSTS 数据的文件列表。自 PHP 8.2.0 和 cURL 7.74.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-hsts-ctrl">
    <strong><code><a href="curl.constants.php#constant.curlopt-hsts-ctrl">CURLOPT_HSTS_CTRL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     接受由 <strong><code><a href="curl.constants.php#constant.curlhsts-enable">CURLHSTS_<span class="replaceable">*</span></a></code></strong> 常量定义的 HSTS（HTTP
     严格传输安全）功能的位掩码。自 PHP 8.2.0 和 cURL 7.74.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-http09-allowed">
    <strong><code><a href="curl.constants.php#constant.curlopt-http09-allowed">CURLOPT_HTTP09_ALLOWED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     是否允许 HTTP/0.9 响应。从 cURL 7.66.0 起默认为 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>；以前默认为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>。分别自
     PHP 7.3.15 和 7.4.3 以及 cURL 7.64.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-http200aliases">
    <strong><code><a href="curl.constants.php#constant.curlopt-http200aliases">CURLOPT_HTTP200ALIASES</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     包含 HTTP <code class="literal">200</code> 响应的 <span class="type"><a href="language.types.array.php" class="type array">array</a></span>，会将这些响应视为有效响应而非错误。自 cURL 7.10.3 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-httpauth">
    <strong><code><a href="curl.constants.php#constant.curlopt-httpauth">CURLOPT_HTTPAUTH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     使用的 HTTP 验证方法。选项有：
     <span class="simplelist"><strong><code><a href="curl.constants.php#constant.curlauth-basic">CURLAUTH_BASIC</a></code></strong>, <strong><code><a href="curl.constants.php#constant.curlauth-digest">CURLAUTH_DIGEST</a></code></strong>, <strong><code><a href="curl.constants.php#constant.curlauth-gssnegotiate">CURLAUTH_GSSNEGOTIATE</a></code></strong>, <strong><code><a href="curl.constants.php#constant.curlauth-ntlm">CURLAUTH_NTLM</a></code></strong>, <strong><code><a href="curl.constants.php#constant.curlauth-aws-sigv4">CURLAUTH_AWS_SIGV4</a></code></strong>, <strong><code><a href="curl.constants.php#constant.curlauth-any">CURLAUTH_ANY</a></code></strong>, <strong><code><a href="curl.constants.php#constant.curlauth-anysafe">CURLAUTH_ANYSAFE</a></code></strong></span>。如果使用多种方法，cURL 将轮询服务器以查看它支持哪些方法并选择最佳方法。<strong><code><a href="curl.constants.php#constant.curlauth-any">CURLAUTH_ANY</a></code></strong>
     设置所有的位。cURL 将自动选择它认为最安全的一个。<strong><code><a href="curl.constants.php#constant.curlauth-anysafe">CURLAUTH_ANYSAFE</a></code></strong> 设置了除
     <strong><code><a href="curl.constants.php#constant.curlauth-basic">CURLAUTH_BASIC</a></code></strong> 以外所有的位。cURL 将自动选择它认为最安全的一个。自 cURL 7.10.6 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-httpget">
    <strong><code><a href="curl.constants.php#constant.curlopt-httpget">CURLOPT_HTTPGET</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时会设置 HTTP 方法为 <code class="literal">GET</code>，由于默认是
     <code class="literal">GET</code>，所以只有修改请求方法时才需要这个选项。自 cURL 7.8.1 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-httpheader">
    <strong><code><a href="curl.constants.php#constant.curlopt-httpheader">CURLOPT_HTTPHEADER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     要设置的 HTTP header 字段 <span class="type"><a href="language.types.array.php" class="type array">array</a></span>，格式为 <code class="code">
      array(&#039;Content-type: text/plain&#039;, &#039;Content-length: 100&#039;)
     </code>，自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-httpproxytunnel">
    <strong><code><a href="curl.constants.php#constant.curlopt-httpproxytunnel">CURLOPT_HTTPPROXYTUNNEL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 会通过指定 HTTP 代理来传输。自 cURL 7.3.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-http-content-decoding">
    <strong><code><a href="curl.constants.php#constant.curlopt-http-content-decoding">CURLOPT_HTTP_CONTENT_DECODING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> 时获取原始 HTTP 响应主体。自 cURL 7.16.2 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-http-transfer-decoding">
    <strong><code><a href="curl.constants.php#constant.curlopt-http-transfer-decoding">CURLOPT_HTTP_TRANSFER_DECODING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     若设置为 <code class="literal">0</code>，则禁用传输解码；若设置为
     <code class="literal">1</code>，则启用传输解码。除非该选项设为
     <code class="literal">0</code>，否则 cURL 默认启用分块传输解码。默认值为
     <code class="literal">1</code>。自 cURL 7.16.2 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-http-version">
    <strong><code><a href="curl.constants.php#constant.curlopt-http-version">CURLOPT_HTTP_VERSION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="curl.constants.php#constant.curl-http-version-1-0">CURL_HTTP_VERSION_<span class="replaceable">*</span></a></code></strong> 常量中的一个，以便
     cURL 使用指定的 HTTP 版本。自 cURL 7.9.1 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ignore-content-length">
    <strong><code><a href="curl.constants.php#constant.curlopt-ignore-content-length">CURLOPT_IGNORE_CONTENT_LENGTH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     若设置为 <code class="literal">1</code>，则忽略 HTTP 响应中的 <code class="literal">Content-Length</code>
     header，并在 FTP 传输中忽略对此 header 的请求或依赖。默认值为 <code class="literal">0</code>。自 cURL 7.14.1 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-infile">
    <strong><code><a href="curl.constants.php#constant.curlopt-infile">CURLOPT_INFILE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     接受文件句柄 <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>，用于在上传时从中读取传输内容。自 cURL 7.1.0
     起可用，并自 cURL 7.9.7 起弃用。建议改用 <strong><code><a href="curl.constants.php#constant.curlopt-readdata">CURLOPT_READDATA</a></code></strong>。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-infilesize">
    <strong><code><a href="curl.constants.php#constant.curlopt-infilesize">CURLOPT_INFILESIZE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     希望传给远程站点的文件字节大小。注意无法用这个选项阻止 cURL 发送更多的数据，确切发送什么取决于
     <strong><code><a href="curl.constants.php#constant.curlopt-readfunction">CURLOPT_READFUNCTION</a></code></strong>。此选项接受任何可以转换为有效 <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
     的值。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-interface">
    <strong><code><a href="curl.constants.php#constant.curlopt-interface">CURLOPT_INTERFACE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>，指定要使用的出站网络接口名称。该值可以是接口名称、IP 地址或主机名。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ipresolve">
    <strong><code><a href="curl.constants.php#constant.curlopt-ipresolve">CURLOPT_IPRESOLVE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     允许应用程序选择在解析主机名时使用哪种 IP 地址。这仅在使用解析使用多个 IP 版本的地址的主机名时才有意义。设置为
     <strong><code><a href="curl.constants.php#constant.curl-ipresolve-v4">CURL_IPRESOLVE_<span class="replaceable">*</span></a></code></strong> 常量中的一个。默认为
     <strong><code><a href="curl.constants.php#constant.curl-ipresolve-whatever">CURL_IPRESOLVE_WHATEVER</a></code></strong>。自 cURL 7.10.8 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-issuercert">
    <strong><code><a href="curl.constants.php#constant.curlopt-issuercert">CURLOPT_ISSUERCERT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     If set to a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> naming a file holding a CA certificate in PEM format,
     an additional check against the peer certificate is performed
     to verify the issuer is indeed the one associated
     with the certificate provided by the option.
     For the result of the check to be considered a failure,
     this option should be used in combination with the
     <strong><code><a href="curl.constants.php#constant.curlopt-ssl-verifypeer">CURLOPT_SSL_VERIFYPEER</a></code></strong> option.
     Available as of cURL 7.19.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-issuercert-blob">
    <strong><code><a href="curl.constants.php#constant.curlopt-issuercert-blob">CURLOPT_ISSUERCERT_BLOB</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Pass a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with binary data of a CA SSL certificate in PEM format.
     If set, an additional check against the peer certificate is performed
     to verify the issuer is the one associated with the certificate provided by the option.
     Available as of PHP 8.1.0 and cURL 7.71.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-keep-sending-on-error">
    <strong><code><a href="curl.constants.php#constant.curlopt-keep-sending-on-error">CURLOPT_KEEP_SENDING_ON_ERROR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时，如果返回的 HTTP 代码等于或大于
     <code class="literal">300</code>，则继续发送请求主体。默认操作是停止发送并关闭流或连接。适用于手动 NTLM
     身份验证。大多数应用程序不需要此选项。自 PHP 7.3.0 和 cURL 7.51.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-keypasswd">
    <strong><code><a href="curl.constants.php#constant.curlopt-keypasswd">CURLOPT_KEYPASSWD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set to a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the password required to use the <strong><code><a href="curl.constants.php#constant.curlopt-sslkey">CURLOPT_SSLKEY</a></code></strong>
     or <strong><code><a href="curl.constants.php#constant.curlopt-ssh-private-keyfile">CURLOPT_SSH_PRIVATE_KEYFILE</a></code></strong> private key.
     Setting this option to <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> disables using a password for these options.
     Available as of cURL 7.17.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-krb4level">
    <strong><code><a href="curl.constants.php#constant.curlopt-krb4level">CURLOPT_KRB4LEVEL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     The KRB4 (Kerberos 4) security level. Any of the following <span class="type"><a href="language.types.string.php" class="type string">string</a></span> values
     (in order from least to most powerful) are valid:
     <span class="simplelist"><code class="literal">clear</code>, <code class="literal">safe</code>, <code class="literal">confidential</code>, <code class="literal">private</code></span>.
     If the <span class="type"><a href="language.types.string.php" class="type string">string</a></span> does not match one of these,
     <code class="literal">private</code> is used. Setting this option to <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>
     will disable KRB4 security. Currently KRB4 security only works
     with FTP transactions.
     Available as of cURL 7.3.0 and deprecated as of cURL 7.17.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-krblevel">
    <strong><code><a href="curl.constants.php#constant.curlopt-krblevel">CURLOPT_KRBLEVEL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set the kerberos security level for FTP and also enables kerberos awareness.
     This should be set to one of the following <span class="type"><a href="language.types.string.php" class="type string">string</a></span>s:
     <span class="simplelist"><code class="literal">clear</code>, <code class="literal">safe</code>, <code class="literal">confidential</code>, <code class="literal">private</code></span>.
     If the <span class="type"><a href="language.types.string.php" class="type string">string</a></span> is set but does not match one of these,
     <code class="literal">private</code> is used.
     Setting this option to <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> will disable kerberos support for FTP.
     Defaults to <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>.
     Available as of cURL 7.16.4.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-localport">
    <strong><code><a href="curl.constants.php#constant.curlopt-localport">CURLOPT_LOCALPORT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Sets the local port number of the socket used for the connection.
     This option accepts any value that can be cast to a valid <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>.
     Defaults to <code class="literal">0</code>.
     Available as of cURL 7.15.2.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-localportrange">
    <strong><code><a href="curl.constants.php#constant.curlopt-localportrange">CURLOPT_LOCALPORTRANGE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     The number of attempts cURL makes to find a working local port number,
     starting with the one set with <strong><code><a href="curl.constants.php#constant.curlopt-localport">CURLOPT_LOCALPORT</a></code></strong>.
     This option accepts any value that can be cast to a valid <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>.
     Defaults to <code class="literal">1</code>.
     Available as of cURL 7.15.2.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-login-options">
    <strong><code><a href="curl.constants.php#constant.curlopt-login-options">CURLOPT_LOGIN_OPTIONS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Can be used to set protocol specific login options, such as the
     preferred authentication mechanism via <code class="literal">AUTH=NTLM</code> or <code class="literal">AUTH=*</code>, and should be used in conjunction with the
     <strong><code><a href="curl.constants.php#constant.curlopt-username">CURLOPT_USERNAME</a></code></strong> option.
     Available as of PHP 7.0.7 and cURL 7.34.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-low-speed-limit">
    <strong><code><a href="curl.constants.php#constant.curlopt-low-speed-limit">CURLOPT_LOW_SPEED_LIMIT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     传输速度，每秒字节数，根据 <strong><code><a href="curl.constants.php#constant.curlopt-low-speed-time">CURLOPT_LOW_SPEED_TIME</a></code></strong>
     秒数统计是否因太慢而取消传输。此选项接受任何可以转换为有效 <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
     的值。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-low-speed-time">
    <strong><code><a href="curl.constants.php#constant.curlopt-low-speed-time">CURLOPT_LOW_SPEED_TIME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     当传输速度小于 <strong><code><a href="curl.constants.php#constant.curlopt-low-speed-limit">CURLOPT_LOW_SPEED_LIMIT</a></code></strong> 时(bytes/sec)，PHP
     会判断是否因太慢而取消传输。此选项接受任何可以转换为有效 <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
     的值。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-mail-auth">
    <strong><code><a href="curl.constants.php#constant.curlopt-mail-auth">CURLOPT_MAIL_AUTH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>，表示正在转发到另一服务器的提交消息的身份验证地址（身份）。该地址不应包含在尖括号（<code class="literal">&lt;&gt;</code>）中。如果使用空
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>，则 cURL 会根据 RFC 2554 的要求发送一对括号。自 cURL 7.25.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-mail-from">
    <strong><code><a href="curl.constants.php#constant.curlopt-mail-from">CURLOPT_MAIL_FROM</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     在发送 SMTP 邮件时，设置一个包含发件人电子邮件地址的
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>。电子邮件地址应使用尖括号（<code class="literal">&lt;&gt;</code>）括起来，如果未指定，系统会自动添加。如果未设置此参数，则会向
     SMTP 服务器发送空地址，这可能导致邮件被拒绝。自 cURL 7.20.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-mail-rcpt">
    <strong><code><a href="curl.constants.php#constant.curlopt-mail-rcpt">CURLOPT_MAIL_RCPT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为由 <span class="type"><a href="language.types.string.php" class="type string">string</a></span> 组成的 <span class="type"><a href="language.types.array.php" class="type array">array</a></span>，包含在 SMTP
     邮件请求中传递给服务器的收件人。每个收件人应使用尖括号（<code class="literal">&lt;&gt;</code>）括起来。如果第一个字符未使用尖括号，cURL
     会假定提供的是单个电子邮件地址，并将该地址用括号括起来。自 cURL 7.20.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-mail-rcpt-alllowfails">
    <strong><code><a href="curl.constants.php#constant.curlopt-mail-rcpt-alllowfails">CURLOPT_MAIL_RCPT_ALLLOWFAILS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <code class="literal">1</code> 以允许 <code class="literal">RCPT TO</code> 命令对某些收件人失败，这会使 cURL
     忽略个别收件人的错误并继续处理其余已接受的收件人。如果所有收件人触发失败并且设置了此 flag，cURL 将中止
     SMTP 对话并返回从最后一个 <code class="literal">RCPT TO</code> 命令收到的错误。自 cURL 8.2.0 起由
     <strong><code>CURLOPT_MAIL_RCPT_ALLOWFAILS</code></strong> 取代。自 PHP 8.2.0 和 cURL 7.69.0
     起可用。自 cURL 8.2.0 起弃用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-maxage-conn">
    <strong><code><a href="curl.constants.php#constant.curlopt-maxage-conn">CURLOPT_MAXAGE_CONN</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     重新使用已存在连接时允许的最大空闲时间。默认最大时间设置为 <code class="literal">118</code>
     秒。此选项接受任何可以转换为有效 <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> 的值。自 PHP 8.2.0 和 cURL 7.65.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-maxconnects">
    <strong><code><a href="curl.constants.php#constant.curlopt-maxconnects">CURLOPT_MAXCONNECTS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     允许的最大持久连接数。当达到限制时，将会关闭缓存中最早的连接，以防止增加已打开的连接数。此选项接受任何可以转换为有效
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> 的值。自 cURL 7.7.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-maxfilesize">
    <strong><code><a href="curl.constants.php#constant.curlopt-maxfilesize">CURLOPT_MAXFILESIZE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Sets the maximum accepted size (in bytes) of a file to download.
     If the file requested is found larger than this value,
     the transfer is aborted
     and <strong><code><a href="curl.constants.php#constant.curle-filesize-exceeded">CURLE_FILESIZE_EXCEEDED</a></code></strong> is returned.
     Passing <code class="literal">0</code> disables this option,
     and passing a negative size returns a
     <strong><code><a href="curl.constants.php#constant.curle-bad-function-argument">CURLE_BAD_FUNCTION_ARGUMENT</a></code></strong>.
     If the file size is not known prior to the start of download,
     this option has no effect.
     For setting a size limit above <code class="literal">2GB</code>,
     <strong><code><a href="curl.constants.php#constant.curlopt-maxfilesize-large">CURLOPT_MAXFILESIZE_LARGE</a></code></strong> should be used.
     As of cURL 8.4.0, this option also stops ongoing transfers
     if they reach this threshold.
     This option accepts any value that can be cast to a valid <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>.
     Defaults to <code class="literal">0</code>.
     Available as of cURL 7.10.8.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-maxfilesize-large">
    <strong><code><a href="curl.constants.php#constant.curlopt-maxfilesize-large">CURLOPT_MAXFILESIZE_LARGE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     The maximum file size in bytes allowed to download. If the file requested is found larger than this value,
     the transfer will not start and <strong><code><a href="curl.constants.php#constant.curle-filesize-exceeded">CURLE_FILESIZE_EXCEEDED</a></code></strong> will be returned.
     The file size is not always known prior to download, and for such files this option has no effect even if
     the file transfer ends up being larger than this given limit.
     This option accepts any value that can be cast to a valid <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>.
     Available as of PHP 8.2.0 and cURL 7.11.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-maxlifetime-conn">
    <strong><code><a href="curl.constants.php#constant.curlopt-maxlifetime-conn">CURLOPT_MAXLIFETIME_CONN</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     The maximum time in seconds, since the creation of the connection, that is allowed for an existing
     connection to have for it to be considered for reuse. If a connection is found in the cache that is older
     than this value, it will instead be closed once any in-progress transfers are complete.
     Default is <code class="literal">0</code> seconds, meaning the option is disabled and all connections are eligible for reuse.
     This option accepts any value that can be cast to a valid <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>.
     Available as of PHP 8.2.0 and cURL 7.80.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-maxredirs">
    <strong><code><a href="curl.constants.php#constant.curlopt-maxredirs">CURLOPT_MAXREDIRS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     指定最多的 HTTP 重定向次数，这个选项是和 <strong><code><a href="curl.constants.php#constant.curlopt-followlocation">CURLOPT_FOLLOWLOCATION</a></code></strong> 一起使用的。默认值 <code class="literal">20</code>
     是为了防止无限重定向。设置为 <code class="literal">-1</code> 允许无限重定向，<code class="literal">0</code> 拒绝所有重定向。自 cURL 7.5.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-max-recv-speed-large">
    <strong><code><a href="curl.constants.php#constant.curlopt-max-recv-speed-large">CURLOPT_MAX_RECV_SPEED_LARGE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     如果下载速度超过了此速度（以每秒字节数来统计），即传输过程中累计的平均数，传输就会降速到这个参数的值。默认不限速。
     This option accepts any value that can be cast to a valid <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>.
     Available as of cURL 7.15.5.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-max-send-speed-large">
    <strong><code><a href="curl.constants.php#constant.curlopt-max-send-speed-large">CURLOPT_MAX_SEND_SPEED_LARGE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     如果上传的速度超过了此速度（以每秒字节数来统计），即传输过程中累计的平均数，传输就会降速到这个参数的值。默认不限速。
     This option accepts any value that can be cast to a valid <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>.
     Available as of cURL 7.15.5.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-mime-options">
    <strong><code><a href="curl.constants.php#constant.curlopt-mime-options">CURLOPT_MIME_OPTIONS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set to a bitmask of <strong><code><a href="curl.constants.php#constant.curlmimeopt-formescape">CURLMIMEOPT_<span class="replaceable">*</span></a></code></strong>
     constants. Currently there is only one available option:
     <strong><code><a href="curl.constants.php#constant.curlmimeopt-formescape">CURLMIMEOPT_FORMESCAPE</a></code></strong>.
     Available as of PHP 8.3.0 and cURL 7.81.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-mute">
    <strong><code><a href="curl.constants.php#constant.curlopt-mute">CURLOPT_MUTE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时将完全静默，无论是何 cURL 函数。使用 <strong><code><a href="curl.constants.php#constant.curlopt-returntransfer">CURLOPT_RETURNTRANSFER</a></code></strong>
     代替。自 cURL 7.1.0 起可用，自 cURL 7.8.0 起弃用，最后在 cURL 7.15.5 中可用。自 PHP 7.3.0 起移除。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-netrc">
    <strong><code><a href="curl.constants.php#constant.curlopt-netrc">CURLOPT_NETRC</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时，在连接建立时，访问 <var class="filename">~/.netrc</var>
     文件获取用户名和密码来连接远程站点。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-netrc-file">
    <strong><code><a href="curl.constants.php#constant.curlopt-netrc-file">CURLOPT_NETRC_FILE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> containing the full path name to a <code class="literal">.netrc</code> file.
     If this option is omitted and <strong><code><a href="curl.constants.php#constant.curlopt-netrc">CURLOPT_NETRC</a></code></strong> is set,
     cURL checks for a <code class="literal">.netrc</code> file
     in the current user&#039;s home directory.
     Available as of cURL 7.11.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-new-directory-perms">
    <strong><code><a href="curl.constants.php#constant.curlopt-new-directory-perms">CURLOPT_NEW_DIRECTORY_PERMS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Sets the value of the permissions (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>) that is set on newly created directories
     on the remote server. The default value is <code class="literal">0755</code>.
     The only protocols that can use this are
     <code class="literal">sftp://</code>, <code class="literal">scp://</code>
     and <code class="literal">file://</code>.
     Available as of cURL 7.16.4.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-new-file-perms">
    <strong><code><a href="curl.constants.php#constant.curlopt-new-file-perms">CURLOPT_NEW_FILE_PERMS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Sets the value of the permissions (as an <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>) that are set on newly created files
     on the remote server. The default value is <code class="literal">0644</code>.
     The only protocols that can use this are
     <code class="literal">sftp://</code>, <code class="literal">scp://</code>
     and <code class="literal">file://</code>.
     Available as of cURL 7.16.4.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-nobody">
    <strong><code><a href="curl.constants.php#constant.curlopt-nobody">CURLOPT_NOBODY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 可从输出中排除正文。对于 HTTP(S)，cURL 会发出 HEAD 请求。对于大多数其他协议，cURL
     根本不会要求正文数据。将其更改为 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> 将导致正文数据包含在输出中。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-noprogress">
    <strong><code><a href="curl.constants.php#constant.curlopt-noprogress">CURLOPT_NOPROGRESS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时关闭 cURL 的传输进度。
     <blockquote class="note"><p><strong class="note">注意</strong>: 
      <p class="para">
       PHP 自动设置此选项为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>，只有用于调试才需要改变设置。
      </p>
     </p></blockquote>
     自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-noproxy">
    <strong><code><a href="curl.constants.php#constant.curlopt-noproxy">CURLOPT_NOPROXY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> consisting of a comma separated list of hostnames
     that do not require a proxy to get reached.
     Each name in this list is matched as either a domain
     which contains the hostname or the hostname itself.
     The only wildcard available in the <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
     is a single <code class="literal">*</code> character which matches all hosts,
     effectively disabling the proxy.
     Setting this option to an empty <span class="type"><a href="language.types.string.php" class="type string">string</a></span> enables the proxy for all hostnames.
     Since cURL 7.86.0, IP addresses set with this option
     can be provided using CIDR notation.
     Available as of cURL 7.19.4.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-nosignal">
    <strong><code><a href="curl.constants.php#constant.curlopt-nosignal">CURLOPT_NOSIGNAL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时忽略所有的 cURL 函数传递给 PHP 进程的信号。在 SAPI
     多线程传输时默认启用此选项，所以超时选项仍能使用。自 cURL 7.10 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-passwdfunction">
    <strong><code><a href="curl.constants.php#constant.curlopt-passwdfunction">CURLOPT_PASSWDFUNCTION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     具有以下签名的 <span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span>：
     <div class="methodsynopsis dc-description">
      <span class="methodname"><span class="replaceable">callback</span></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$curlHandle</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$passwordPrompt</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$maximumPasswordLength</code></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

     <dl>
      
       <dt><code class="parameter">curlHandle</code></dt>
       <dd>
        <span class="simpara">
         cURL 句柄。
        </span>
       </dd>
      
      
       <dt><code class="parameter">passwordPrompt</code></dt>
       <dd>
        <span class="simpara">
         A password prompt.
        </span>
       </dd>
      
      
       <dt><code class="parameter">maximumPasswordLength</code></dt>
       <dd>
        <span class="simpara">
         The maximum length of the password.
        </span>
       </dd>
      
     </dl>
     The callback should return a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> containing the password.
     Available as of cURL 7.4.2, deprecated as of cURL 7.11.1
     and last available in cURL 7.15.5.
     Removed as of PHP 7.3.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-password">
    <strong><code><a href="curl.constants.php#constant.curlopt-password">CURLOPT_PASSWORD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set to a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the password to use in authentication.
     Available as of cURL 7.19.1.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-path-as-is">
    <strong><code><a href="curl.constants.php#constant.curlopt-path-as-is">CURLOPT_PATH_AS_IS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set to <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> for cURL not alter URL paths before passing them on to the server.
     Defaults to <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>, which squashes sequences of <code class="literal">/../</code>
     or <code class="literal">/./</code> that may exist in the URL&#039;s path part
     which is supposed to be removed according to RFC 3986 section 5.2.4.
     Available as of PHP 7.0.7 and cURL 7.42.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-pinnedpublickey">
    <strong><code><a href="curl.constants.php#constant.curlopt-pinnedpublickey">CURLOPT_PINNEDPUBLICKEY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the pinned public key.
     The <span class="type"><a href="language.types.string.php" class="type string">string</a></span> can be the file name of the pinned public key
     in a PEM or DER file format. The <span class="type"><a href="language.types.string.php" class="type string">string</a></span> can also be any
     number of base64 encoded sha256 hashes preceded by <code class="literal">sha256//</code> and
     separated by <code class="literal">;</code>.
     Available as of PHP 7.0.7 and cURL 7.39.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-pipewait">
    <strong><code><a href="curl.constants.php#constant.curlopt-pipewait">CURLOPT_PIPEWAIT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set to <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> to wait for an existing connection to confirm
     whether it can do multiplexing and use it if it can
     before creating and using a new connection.
     Available as of PHP 7.0.7 and cURL 7.43.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-port">
    <strong><code><a href="curl.constants.php#constant.curlopt-port">CURLOPT_PORT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     An <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> with an alternative port number to connect to
     instead of the one specified in the URL or the default port for the used protocol.
     Available as of cURL 7.1.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-post">
    <strong><code><a href="curl.constants.php#constant.curlopt-post">CURLOPT_POST</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 用于执行 HTTP <code class="literal">POST</code> 请求。此请求使用
     <code class="literal">application/x-www-form-urlencoded</code> header。默认为 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-postfields">
    <strong><code><a href="curl.constants.php#constant.curlopt-postfields">CURLOPT_POSTFIELDS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     The full data to post in a HTTP <code class="literal">POST</code> operation.
     This parameter can either be
     passed as a urlencoded <span class="type"><a href="language.types.string.php" class="type string">string</a></span> like &#039;<code class="literal">para1=val1&amp;para2=val2&amp;...</code>&#039;
     or as an <span class="type"><a href="language.types.array.php" class="type array">array</a></span> with the field name as key and field data as value.
     If <code class="parameter">value</code> is an <span class="type"><a href="language.types.array.php" class="type array">array</a></span>, the
     <code class="literal">Content-Type</code> header will be set to
     <code class="literal">multipart/form-data</code>.
     Files can be sent using <span class="classname"><a href="class.curlfile.php" class="classname">CURLFile</a></span> or <span class="classname"><a href="class.curlstringfile.php" class="classname">CURLStringFile</a></span>,
     in which case <code class="parameter">value</code> must be an <span class="type"><a href="language.types.array.php" class="type array">array</a></span>.
     Available as of cURL 7.1.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-postquote">
    <strong><code><a href="curl.constants.php#constant.curlopt-postquote">CURLOPT_POSTQUOTE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     An <span class="type"><a href="language.types.array.php" class="type array">array</a></span> of FTP command <span class="type"><a href="language.types.string.php" class="type string">string</a></span>s
     to execute on the server after the FTP request has been performed.
     Available as of cURL 7.1.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-postredir">
    <strong><code><a href="curl.constants.php#constant.curlopt-postredir">CURLOPT_POSTREDIR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     位掩码，<strong><code><a href="curl.constants.php#constant.curl-redir-post-301">CURL_REDIR_POST_301</a></code></strong>、<strong><code><a href="curl.constants.php#constant.curl-redir-post-302">CURL_REDIR_POST_302</a></code></strong>
     和 <strong><code><a href="curl.constants.php#constant.curl-redir-post-303">CURL_REDIR_POST_303</a></code></strong>。当设置 <strong><code><a href="curl.constants.php#constant.curlopt-followlocation">CURLOPT_FOLLOWLOCATION</a></code></strong>
     并发生了特定类型的重定向时，是否需要再次 HTTP <code class="literal">POST</code> 到重定向网址。自 cURL 7.19.1 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-pre-proxy">
    <strong><code><a href="curl.constants.php#constant.curlopt-pre-proxy">CURLOPT_PRE_PROXY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> holding the host name or dotted numerical
     IP address to be used as the preproxy that cURL connects to before
     it connects to the HTTP(S) proxy specified in the
     <strong><code><a href="curl.constants.php#constant.curlopt-proxy">CURLOPT_PROXY</a></code></strong> option for the upcoming request.
     The preproxy can only be a SOCKS proxy and it should be prefixed with
     <code class="literal">[scheme]://</code> to specify which kind of socks is used.
     A numerical IPv6 address must be written within [brackets].
     Setting the preproxy to an empty <span class="type"><a href="language.types.string.php" class="type string">string</a></span> explicitly disables the use of a preproxy.
     To specify port number in this <span class="type"><a href="language.types.string.php" class="type string">string</a></span>, append <code class="literal">:[port]</code>
     to the end of the host name. The proxy&#039;s port number may optionally be
     specified with the separate option <strong><code><a href="curl.constants.php#constant.curlopt-proxyport">CURLOPT_PROXYPORT</a></code></strong>.
     Defaults to using port 1080 for proxies if a port is not specified.
     Available as of PHP 7.3.0 and cURL 7.52.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-prequote">
    <strong><code><a href="curl.constants.php#constant.curlopt-prequote">CURLOPT_PREQUOTE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set an <span class="type"><a href="language.types.array.php" class="type array">array</a></span> of FTP command <span class="type"><a href="language.types.string.php" class="type string">string</a></span>s to pass to the server
     after the transfer type is set.
     These commands are not performed when a directory listing is performed,
     only for file transfers.
     Available as of cURL 7.9.5.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-private">
    <strong><code><a href="curl.constants.php#constant.curlopt-private">CURLOPT_PRIVATE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Any data that should be associated with this cURL handle. This data
     can subsequently be retrieved with the
     <strong><code><a href="curl.constants.php#constant.curlinfo-private">CURLINFO_PRIVATE</a></code></strong> option of
     <span class="function"><a href="function.curl-getinfo.php" class="function">curl_getinfo()</a></span>. cURL does nothing with this data.
     When using a cURL multi handle, this private data is typically a
     unique key to identify a standard cURL handle.
     Available as of cURL 7.10.3.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-progressfunction">
    <strong><code><a href="curl.constants.php#constant.curlopt-progressfunction">CURLOPT_PROGRESSFUNCTION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     具有以下签名的 <span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span>：
     <div class="methodsynopsis dc-description">
      <span class="methodname"><span class="replaceable">callback</span></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$curlHandle</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$bytesToDownload</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$bytesDownloaded</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$bytesToUpload</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$bytesUploaded</code></span><br>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

     <dl>
      
       <dt><code class="parameter">curlHandle</code></dt>
       <dd>
        <span class="simpara">
         cURL 句柄。
        </span>
       </dd>
      
      
       <dt><code class="parameter">bytesToDownload</code></dt>
       <dd>
        <span class="simpara">
         The total number of bytes expected to be downloaded in this transfer.
        </span>
       </dd>
      
      
       <dt><code class="parameter">bytesDownloaded</code></dt>
       <dd>
        <span class="simpara">
         The number of bytes downloaded so far.
        </span>
       </dd>
      
      
       <dt><code class="parameter">bytesToUpload</code></dt>
       <dd>
        <span class="simpara">
         The total number of bytes expected to be uploaded in this transfer.
        </span>
       </dd>
      
      
       <dt><code class="parameter">bytesUploaded</code></dt>
       <dd>
        <span class="simpara">
         The number of bytes uploaded so far.
        </span>
       </dd>
      
     </dl>
     The callback should return an <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> with a non-zero value to abort the transfer
     and set a <strong><code><a href="curl.constants.php#constant.curle-aborted-by-callback">CURLE_ABORTED_BY_CALLBACK</a></code></strong> error.
     <blockquote class="note"><p><strong class="note">注意</strong>: 
      <p class="para">
       The callback is only called when the <strong><code><a href="curl.constants.php#constant.curlopt-noprogress">CURLOPT_NOPROGRESS</a></code></strong>
       option is set to <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
      </p>
     </p></blockquote>
     Available as of cURL 7.1.0 and deprecated as of cURL 7.32.0.
     Use <strong><code><a href="curl.constants.php#constant.curlopt-xferinfofunction">CURLOPT_XFERINFOFUNCTION</a></code></strong> instead.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-protocols">
    <strong><code><a href="curl.constants.php#constant.curlopt-protocols">CURLOPT_PROTOCOLS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Bitmask of <strong><code><a href="curl.constants.php#constant.curlproto-all">CURLPROTO_<span class="replaceable">*</span></a></code></strong> values.
     If used, this bitmask limits what protocols cURL may use in the transfer.
     Defaults to <strong><code><a href="curl.constants.php#constant.curlproto-all">CURLPROTO_ALL</a></code></strong>, ie. cURL will accept all protocols it supports.
     See also <strong><code><a href="curl.constants.php#constant.curlopt-redir-protocols">CURLOPT_REDIR_PROTOCOLS</a></code></strong>.
     Available as of cURL 7.19.4 and deprecated as of cURL 7.85.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-protocols-str">
    <strong><code><a href="curl.constants.php#constant.curlopt-protocols-str">CURLOPT_PROTOCOLS_STR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set to a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with a comma separated list
     of case insensitive protocol names (URL schemes) to allow in the transfer.
     Set to <code class="literal">ALL</code> to enable all protocols.
     By default, cURL accepts all protocols it was built with support for.
     Available protocols are:
     <span class="simplelist"><code class="literal">DICT</code>, <code class="literal">FILE</code>, <code class="literal">FTP</code>, <code class="literal">FTPS</code>, <code class="literal">GOPHER</code>, <code class="literal">GOPHERS</code>, <code class="literal">HTTP</code>, <code class="literal">HTTPS</code>, <code class="literal">IMAP</code>, <code class="literal">IMAPS</code>, <code class="literal">LDAP</code>, <code class="literal">LDAPS</code>, <code class="literal">MQTT</code>, <code class="literal">POP3</code>, <code class="literal">POP3S</code>, <code class="literal">RTMP</code>, <code class="literal">RTMPE</code>, <code class="literal">RTMPS</code>, <code class="literal">RTMPT</code>, <code class="literal">RTMPTE</code>, <code class="literal">RTMPTS</code>, <code class="literal">RTSP</code>, <code class="literal">SCP</code>, <code class="literal">SFTP</code>, <code class="literal">SMB</code>, <code class="literal">SMBS</code>, <code class="literal">SMTP</code>, <code class="literal">SMTPS</code>, <code class="literal">TELNET</code>, <code class="literal">TFTP</code>, <code class="literal">WS</code>, <code class="literal">WSS</code></span>.
     Available as of PHP 8.3.0 and cURL 7.85.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy">CURLOPT_PROXY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the HTTP proxy to tunnel requests through.
     This should be the hostname, the dotted numerical IP address
     or a numerical IPv6 address written within [brackets].
     Available as of cURL 7.1.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxyauth">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxyauth">CURLOPT_PROXYAUTH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A bitmask of the HTTP authentication method(s)
     (<strong><code><a href="curl.constants.php#constant.curlauth-any">CURLAUTH_<span class="replaceable">*</span></a></code></strong> constants)
     to use for the proxy connection.
     For proxy authentication, only <strong><code><a href="curl.constants.php#constant.curlauth-basic">CURLAUTH_BASIC</a></code></strong> and
     <strong><code><a href="curl.constants.php#constant.curlauth-ntlm">CURLAUTH_NTLM</a></code></strong> are currently supported.
     Defaults to <strong><code><a href="curl.constants.php#constant.curlauth-basic">CURLAUTH_BASIC</a></code></strong>.
     Available as of cURL 7.10.7.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxyheader">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxyheader">CURLOPT_PROXYHEADER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     An <span class="type"><a href="language.types.array.php" class="type array">array</a></span> of custom HTTP header <span class="type"><a href="language.types.string.php" class="type string">string</a></span>s to pass to proxies.
     Available as of PHP 7.0.7 and cURL 7.37.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxypassword">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxypassword">CURLOPT_PROXYPASSWORD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the password to be used for authentication with the proxy.
     Available as of cURL 7.19.1.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxyport">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxyport">CURLOPT_PROXYPORT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     An <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> with the port number of the proxy to connect to.
     This port number can also be set in <strong><code><a href="curl.constants.php#constant.curlopt-proxy">CURLOPT_PROXY</a></code></strong>.
     Setting this to zero makes cURL use the default proxy port number
     or the port number specified in the proxy URL <span class="type"><a href="language.types.string.php" class="type string">string</a></span>.
     Available as of cURL 7.1.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxytype">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxytype">CURLOPT_PROXYTYPE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Sets the type of the proxy to one of the
     <strong><code><a href="curl.constants.php#constant.curlproxy-http">CURLPROXY_<span class="replaceable">*</span></a></code></strong> constants.
     Defaults to <strong><code><a href="curl.constants.php#constant.curlproxy-http">CURLPROXY_HTTP</a></code></strong>.
     Available as of cURL 7.10.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxyusername">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxyusername">CURLOPT_PROXYUSERNAME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the username to be used for authentication with the proxy.
     Available as of cURL 7.19.1.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxyuserpwd">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxyuserpwd">CURLOPT_PROXYUSERPWD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with a username and password formatted as
     <code class="literal">[username]:[password]</code> to use for the
     connection to the proxy.
     Available as of cURL 7.1.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-cainfo">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-cainfo">CURLOPT_PROXY_CAINFO</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     The path to proxy Certificate Authority (CA) bundle. Set the path as a
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span> naming a file holding one or more certificates to
     verify the HTTPS proxy with.
     This option is for connecting to an HTTPS proxy, not an HTTPS server.
     Defaults set to the system path where cURL&#039;s cacert bundle is assumed
     to be stored.
     Available as of PHP 7.3.0 and cURL 7.52.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-cainfo-blob">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-cainfo-blob">CURLOPT_PROXY_CAINFO_BLOB</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the name of a PEM file holding one or more certificates to verify the HTTPS proxy with.
     This option is for connecting to an HTTPS proxy, not an HTTPS server.
     Defaults set to the system path where cURL&#039;s cacert bundle is assumed
     to be stored.
     Available as of PHP 8.2.0 and cURL 7.77.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-capath">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-capath">CURLOPT_PROXY_CAPATH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the directory holding multiple CA certificates
     to verify the HTTPS proxy with.
     Available as of PHP 7.3.0 and cURL 7.52.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-crlfile">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-crlfile">CURLOPT_PROXY_CRLFILE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set to a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the file name
     with the concatenation of CRL (Certificate Revocation List)
     in PEM format to use in the certificate validation that occurs during
     the SSL exchange.
     Available as of PHP 7.3.0 and cURL 7.52.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-issuercert">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-issuercert">CURLOPT_PROXY_ISSUERCERT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Proxy issuer SSL certificate filename <span class="type"><a href="language.types.string.php" class="type string">string</a></span>.
     Available as of PHP 8.1.0 and cURL 7.71.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-issuercert-blob">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-issuercert-blob">CURLOPT_PROXY_ISSUERCERT_BLOB</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the proxy issuer SSL certificate.
     Available as of PHP 8.1.0 and cURL 7.71.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-keypasswd">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-keypasswd">CURLOPT_PROXY_KEYPASSWD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set the <span class="type"><a href="language.types.string.php" class="type string">string</a></span> be used as the password required to use the
     <strong><code><a href="curl.constants.php#constant.curlopt-proxy-sslkey">CURLOPT_PROXY_SSLKEY</a></code></strong> private key.
     A passphrase is not needed to load a certificate
     but one is needed to load a private key.
     This option is for connecting to an HTTPS proxy, not an HTTPS server.
     Available as of PHP 7.3.0 and cURL 7.52.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-pinnedpublickey">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-pinnedpublickey">CURLOPT_PROXY_PINNEDPUBLICKEY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set the pinned public key for HTTPS proxy.
     The <span class="type"><a href="language.types.string.php" class="type string">string</a></span> can be the file name of the pinned public key
     which is expected to be in a <code class="literal">PEM</code>
     or <code class="literal">DER</code> file format.
     The <span class="type"><a href="language.types.string.php" class="type string">string</a></span> can also be any number of base64 encoded sha256 hashes
     preceded by <code class="literal">sha256//</code> and separated by <code class="literal">;</code>.
     Available as of PHP 7.3.0 and cURL 7.52.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-service-name">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-service-name">CURLOPT_PROXY_SERVICE_NAME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the proxy authentication service name.
     Available as of PHP 7.0.7, cURL 7.43.0 (for HTTP proxies) and cURL 7.49.0 (for SOCKS5 proxies).
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-sslcert">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-sslcert">CURLOPT_PROXY_SSLCERT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the file name of the client certificate used to connect to the HTTPS proxy.
     The default format is <code class="literal">P12</code> on Secure Transport and <code class="literal">PEM</code> on other engines,
     and can be changed with <strong><code><a href="curl.constants.php#constant.curlopt-proxy-sslcerttype">CURLOPT_PROXY_SSLCERTTYPE</a></code></strong>.
     With NSS or Secure Transport, this can also be the nickname of the certificate
     used for authentication as it is named in the security database.
     If a file from the current directory is to be used,
     it must be prefixed with <code class="literal">./</code>
     in order to avoid confusion with a nickname.
     Available as of PHP 7.3.0 and cURL 7.52.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-sslcerttype">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-sslcerttype">CURLOPT_PROXY_SSLCERTTYPE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the format of the client certificate used when connecting to an HTTPS proxy.
     Supported formats are <code class="literal">PEM</code> and <code class="literal">DER</code>, except with Secure Transport.
     OpenSSL (versions 0.9.3 and later) and Secure Transport
     (on iOS 5 or later, or OS X 10.7 or later) also support <code class="literal">P12</code> for
     PKCS#12-encoded files. Defaults to <code class="literal">PEM</code>.
     Available as of PHP 7.3.0 and cURL 7.52.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-sslcert-blob">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-sslcert-blob">CURLOPT_PROXY_SSLCERT_BLOB</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the SSL proxy client certificate.
     Available as of PHP 8.1.0 and cURL 7.71.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-sslkey">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-sslkey">CURLOPT_PROXY_SSLKEY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the file name of the private key
     used for connecting to the HTTPS proxy.
     The default format is <code class="literal">PEM</code> and can be changed with
     <strong><code><a href="curl.constants.php#constant.curlopt-proxy-sslkeytype">CURLOPT_PROXY_SSLKEYTYPE</a></code></strong>.
     (iOS and Mac OS X only) This option is ignored if cURL was built against
     Secure Transport. Available if built with TLS enabled.
     Available as of PHP 7.3.0 and cURL 7.52.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-sslkeytype">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-sslkeytype">CURLOPT_PROXY_SSLKEYTYPE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the format of the private key.
     Supported formats are:
     <span class="simplelist"><code class="literal">PEM</code>, <code class="literal">DER</code>, <code class="literal">ENG</code></span>.
     Available as of PHP 7.3.0 and cURL 7.52.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-sslkey-blob">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-sslkey-blob">CURLOPT_PROXY_SSLKEY_BLOB</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the private key for connecting to the HTTPS proxy.
     Available as of PHP 8.1.0 and cURL 7.71.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-sslversion">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-sslversion">CURLOPT_PROXY_SSLVERSION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set the preferred HTTPS proxy TLS version to one of the
     <strong><code><a href="curl.constants.php#constant.curl-sslversion-default">CURL_SSLVERSION_<span class="replaceable">*</span></a></code></strong>
     constants.
     Defaults to <strong><code><a href="curl.constants.php#constant.curl-sslversion-default">CURL_SSLVERSION_DEFAULT</a></code></strong>.
     <div class="warning"><strong class="warning">警告</strong>
      <p class="simpara">
       最好不要设置此选项并使用默认的 <strong><code><a href="curl.constants.php#constant.curl-sslversion-default">CURL_SSLVERSION_DEFAULT</a></code></strong>，这将尝试找出远程 SSL 协议版本。
      </p>
     </div>
     Available as of PHP 7.3.0 and cURL 7.52.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-ssl-cipher-list">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-ssl-cipher-list">CURLOPT_PROXY_SSL_CIPHER_LIST</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with a colon-separated list of ciphers
     to use for the connection to the HTTPS proxy.
     When used with OpenSSL commas and spaces are also acceptable as separators,
     and <code class="literal">!</code>, <code class="literal">-</code> and <code class="literal">+</code>
     can be used as operators.
     Available as of PHP 7.3.0 and cURL 7.52.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-ssl-options">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-ssl-options">CURLOPT_PROXY_SSL_OPTIONS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set proxy SSL behavior options, which is a bitmask of the
     <strong><code><a href="curl.constants.php#constant.curlsslopt-allow-beast">CURLSSLOPT_<span class="replaceable">*</span></a></code></strong> constants.
     Available as of PHP 7.3.0 and cURL 7.52.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-ssl-verifyhost">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-ssl-verifyhost">CURLOPT_PROXY_SSL_VERIFYHOST</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <code class="literal">2</code> 以根据代理名称验证 HTTPS 代理的证书名称字段。设置为 <code class="literal">0</code>
     时，无论证书中使用的名称如何，连接都会成功。谨慎使用该能力！在 cURL 7.28.0 及更早版本中将其设置为
     <code class="literal">1</code> 作为调试选项。在 cURL 7.28.1 到 7.65.3 中设置为 <code class="literal">1</code>，则返回
     <strong><code><a href="curl.constants.php#constant.curle-bad-function-argument">CURLE_BAD_FUNCTION_ARGUMENT</a></code></strong>。自 cURL 7.66.0 起，视 <code class="literal">1</code> 和
     <code class="literal">2</code> 为相同的值。默认为 <code class="literal">2</code>。在生产环境中，此选项的值应保持为
     <code class="literal">2</code>。从 PHP 7.3.0 和 cURL 7.52.0 开始可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-ssl-verifypeer">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-ssl-verifypeer">CURLOPT_PROXY_SSL_VERIFYPEER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> 时阻止 CURL 验证对等证书（peer&#039;s certificate）。可以使用 <strong><code><a href="curl.constants.php#constant.curlopt-cainfo">CURLOPT_CAINFO</a></code></strong>
     选项指定要验证的备用证书，或者使用 <strong><code><a href="curl.constants.php#constant.curlopt-capath">CURLOPT_CAPATH</a></code></strong> 选项指定证书目录。设置为 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>
     时，无论如何验证对等证书都会成功。默认为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>。自 PHP 7.3.0 和 cURL 7.52.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-tls13-ciphers">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-tls13-ciphers">CURLOPT_PROXY_TLS13_CIPHERS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with a colon-separated list of ciphers to use for the connection to the TLS 1.3 connection to a proxy.
     This option is currently used only when cURL is built to use OpenSSL 1.1.1 or later.
     When using a different SSL backend the TLS 1.3 cipher suites can be set
     with the <strong><code><a href="curl.constants.php#constant.curlopt-proxy-ssl-cipher-list">CURLOPT_PROXY_SSL_CIPHER_LIST</a></code></strong> option.
     Available as of PHP 7.3.0 and cURL 7.61.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-tlsauth-password">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-tlsauth-password">CURLOPT_PROXY_TLSAUTH_PASSWORD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the password to use for the TLS authentication method specified with the
     <strong><code><a href="curl.constants.php#constant.curlopt-proxy-tlsauth-type">CURLOPT_PROXY_TLSAUTH_TYPE</a></code></strong> option. Requires that the
     <strong><code><a href="curl.constants.php#constant.curlopt-proxy-tlsauth-username">CURLOPT_PROXY_TLSAUTH_USERNAME</a></code></strong> option to also be set.
     Available as of PHP 7.3.0 and cURL 7.52.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-tlsauth-type">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-tlsauth-type">CURLOPT_PROXY_TLSAUTH_TYPE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     The method of the TLS authentication used for the HTTPS connection.
     Supported method is <code class="literal">SRP</code>.
     <blockquote class="note"><p><strong class="note">注意</strong>: 
      <p class="para">
       Secure Remote Password (SRP) authentication for TLS provides mutual authentication
       if both sides have a shared secret. To use TLS-SRP, the
       <strong><code><a href="curl.constants.php#constant.curlopt-proxy-tlsauth-username">CURLOPT_PROXY_TLSAUTH_USERNAME</a></code></strong> and
       <strong><code><a href="curl.constants.php#constant.curlopt-proxy-tlsauth-password">CURLOPT_PROXY_TLSAUTH_PASSWORD</a></code></strong> options must also be set.
      </p>
     </p></blockquote>
     Available as of PHP 7.3.0 and cURL 7.52.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-tlsauth-username">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-tlsauth-username">CURLOPT_PROXY_TLSAUTH_USERNAME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     The username to use for the HTTPS proxy TLS authentication method specified with the
     <strong><code><a href="curl.constants.php#constant.curlopt-proxy-tlsauth-type">CURLOPT_PROXY_TLSAUTH_TYPE</a></code></strong> option. Requires that the
     <strong><code><a href="curl.constants.php#constant.curlopt-proxy-tlsauth-password">CURLOPT_PROXY_TLSAUTH_PASSWORD</a></code></strong> option to also be set.
     Available as of PHP 7.3.0 and cURL 7.52.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-proxy-transfer-mode">
    <strong><code><a href="curl.constants.php#constant.curlopt-proxy-transfer-mode">CURLOPT_PROXY_TRANSFER_MODE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set to <code class="literal">1</code> to set the transfer mode (binary or ASCII)
     for FTP transfers done via an HTTP proxy, by appending
     <code class="literal">type=a</code> or <code class="literal">type=i</code> to the URL.
     Without this setting or it being set to <code class="literal">0</code>,
     <strong><code><a href="curl.constants.php#constant.curlopt-transfertext">CURLOPT_TRANSFERTEXT</a></code></strong> has no effect
     when doing FTP via a proxy.
     Defaults to <code class="literal">0</code>.
     Available as of cURL 7.18.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-put">
    <strong><code><a href="curl.constants.php#constant.curlopt-put">CURLOPT_PUT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时允许 HTTP 发送文件。要被 PUT 的文件必须在 <strong><code><a href="curl.constants.php#constant.curlopt-readdata">CURLOPT_READDATA</a></code></strong>
     和<strong><code><a href="curl.constants.php#constant.curlopt-infilesize">CURLOPT_INFILESIZE</a></code></strong> 中设置。自 cURL 7.1.0 起可用并于 cURL 7.12.1
     弃用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-quick-exit">
    <strong><code><a href="curl.constants.php#constant.curlopt-quick-exit">CURLOPT_QUICK_EXIT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set to <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> for cURL to skip cleanup of resources
     when recovering from a timeout.
     This allows for a swift termination of the cURL process
     at the expense of a possible leak of associated resources.
     Available as of PHP 8.3.0 and cURL 7.87.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-quote">
    <strong><code><a href="curl.constants.php#constant.curlopt-quote">CURLOPT_QUOTE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     An <span class="type"><a href="language.types.array.php" class="type array">array</a></span> of FTP command <span class="type"><a href="language.types.string.php" class="type string">string</a></span>s to execute on the server prior to the FTP request.
     Available as of cURL 7.1.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-random-file">
    <strong><code><a href="curl.constants.php#constant.curlopt-random-file">CURLOPT_RANDOM_FILE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with a filename to be used to seed the random number generator for SSL.
     Available as of cURL 7.7.0 and deprecated as of cURL 7.84.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-range">
    <strong><code><a href="curl.constants.php#constant.curlopt-range">CURLOPT_RANGE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the range(s) of data to retrieve in the format <code class="literal">X-Y</code> where X or Y are optional. HTTP transfers
     also support several intervals, separated with commas in the format
     <code class="literal">X-Y,N-M</code>.
     Set to <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> to disable requesting a byte range.
     Available as of cURL 7.1.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-readdata">
    <strong><code><a href="curl.constants.php#constant.curlopt-readdata">CURLOPT_READDATA</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Sets a file pointer <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> that will be used by the file read function
     set with <strong><code><a href="curl.constants.php#constant.curlopt-readfunction">CURLOPT_READFUNCTION</a></code></strong>.
     Available as of cURL 7.9.7.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-readfunction">
    <strong><code><a href="curl.constants.php#constant.curlopt-readfunction">CURLOPT_READFUNCTION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     具有以下签名的 <span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span>：
     <div class="methodsynopsis dc-description">
      <span class="methodname"><span class="replaceable">callback</span></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$curlHandle</code></span>, <span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$streamResource</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$maxAmountOfDataToRead</code></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

     <dl>
      
       <dt><code class="parameter">curlHandle</code></dt>
       <dd>
        <span class="simpara">
         cURL 句柄。
        </span>
       </dd>
      
      
       <dt><code class="parameter">streamResource</code></dt>
       <dd>
        <span class="simpara">
         Stream <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> provided to cURL through the option
     <strong><code><a href="curl.constants.php#constant.curlopt-readdata">CURLOPT_READDATA</a></code></strong>.
        </span>
       </dd>
      
      
       <dt><code class="parameter">maxAmountOfDataToRead</code></dt>
       <dd>
        <span class="simpara">
         The maximum amount of data to be read.
        </span>
       </dd>
      
     </dl>
     The callback should return a <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
     with a length equal or smaller than the amount of data requested,
     typically by reading it from the passed stream <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>. It should
     return an empty <span class="type"><a href="language.types.string.php" class="type string">string</a></span> to signal <code class="literal">EOF</code>.
     Available as of cURL 7.1.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-redir-protocols">
    <strong><code><a href="curl.constants.php#constant.curlopt-redir-protocols">CURLOPT_REDIR_PROTOCOLS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Bitmask of <strong><code><a href="curl.constants.php#constant.curlproto-all">CURLPROTO_<span class="replaceable">*</span></a></code></strong> values
     which limit what protocols cURL may use in a transfer that it follows to in
     a redirect when <strong><code><a href="curl.constants.php#constant.curlopt-followlocation">CURLOPT_FOLLOWLOCATION</a></code></strong> is enabled.
     This allows limiting specific transfers to only be allowed to use a subset
     of protocols in redirections.
     As of cURL 7.19.4, by default cURL will allow all protocols
     except for <code class="literal">FILE</code> and <code class="literal">SCP</code>.
     Prior to cURL 7.19.4, cURL would unconditionally follow to all supported protocols.
     See also <strong><code><a href="curl.constants.php#constant.curlopt-protocols">CURLOPT_PROTOCOLS</a></code></strong> for protocol constant values.
     Available as of cURL 7.19.4 and deprecated as of cURL 7.85.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-redir-protocols-str">
    <strong><code><a href="curl.constants.php#constant.curlopt-redir-protocols-str">CURLOPT_REDIR_PROTOCOLS_STR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set to a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with a comma separated list
     of case insensitive protocol names (URL schemes)
     to allow to follow to in a redirect when
     <strong><code><a href="curl.constants.php#constant.curlopt-followlocation">CURLOPT_FOLLOWLOCATION</a></code></strong> is enabled.
     Set to <code class="literal">ALL</code> to enable all protocols.
     As of cURL 7.65.2 it defaults to <code class="literal">FTP</code>,
     <code class="literal">FTPS</code>, <code class="literal">HTTP</code> and <code class="literal">HTTPS</code>.
     From cURL 7.40.0 to 7.65.1, this defaults to all protocols except
     <code class="literal">FILE</code>, <code class="literal">SCP</code>, <code class="literal">SMB</code> and
     <code class="literal">SMBS</code>.
     Prior to cURL 7.40.0, this defaults to all protocols except
     <code class="literal">FILE</code> and <code class="literal">SCP</code>.
     Available protocols are:
     <span class="simplelist"><code class="literal">DICT</code>, <code class="literal">FILE</code>, <code class="literal">FTP</code>, <code class="literal">FTPS</code>, <code class="literal">GOPHER</code>, <code class="literal">GOPHERS</code>, <code class="literal">HTTP</code>, <code class="literal">HTTPS</code>, <code class="literal">IMAP</code>, <code class="literal">IMAPS</code>, <code class="literal">LDAP</code>, <code class="literal">LDAPS</code>, <code class="literal">MQTT</code>, <code class="literal">POP3</code>, <code class="literal">POP3S</code>, <code class="literal">RTMP</code>, <code class="literal">RTMPE</code>, <code class="literal">RTMPS</code>, <code class="literal">RTMPT</code>, <code class="literal">RTMPTE</code>, <code class="literal">RTMPTS</code>, <code class="literal">RTSP</code>, <code class="literal">SCP</code>, <code class="literal">SFTP</code>, <code class="literal">SMB</code>, <code class="literal">SMBS</code>, <code class="literal">SMTP</code>, <code class="literal">SMTPS</code>, <code class="literal">TELNET</code>, <code class="literal">TFTP</code>, <code class="literal">WS</code>, <code class="literal">WSS</code></span>.
     Available as of PHP 8.3.0 and cURL 7.85.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-referer">
    <strong><code><a href="curl.constants.php#constant.curlopt-referer">CURLOPT_REFERER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the contents of the <code class="literal">Referer: </code>
     header to be used in a HTTP request.
     Available as of cURL 7.1.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-request-target">
    <strong><code><a href="curl.constants.php#constant.curlopt-request-target">CURLOPT_REQUEST_TARGET</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> to use in the upcoming request
     instead of the path as extracted from the URL.
     Available as of PHP 7.3.0 and cURL 7.55.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-resolve">
    <strong><code><a href="curl.constants.php#constant.curlopt-resolve">CURLOPT_RESOLVE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Provide an <span class="type"><a href="language.types.array.php" class="type array">array</a></span> of colon-separated <span class="type"><a href="language.types.string.php" class="type string">string</a></span>s
     with custom addresses for specific host and port pairs in the following format:
     <code class="code">
      array(
        &quot;example.com:80:127.0.0.1&quot;,
        &quot;example2.com:443:127.0.0.2&quot;,
      )
     </code>
     Available as of cURL 7.21.3.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-resume-from">
    <strong><code><a href="curl.constants.php#constant.curlopt-resume-from">CURLOPT_RESUME_FROM</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     恢复传输时，传递字节为单位的偏移量（以字节为单位）。此选项接受任何可以转换为有效 <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
     的值。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-returntransfer">
    <strong><code><a href="curl.constants.php#constant.curlopt-returntransfer">CURLOPT_RETURNTRANSFER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 将 <span class="function"><a href="function.curl-exec.php" class="function">curl_exec()</a></span> 获取的信息以 <span class="type"><a href="language.types.string.php" class="type string">string</a></span> 返回，而不是直接输出。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-rtsp-client-cseq">
    <strong><code><a href="curl.constants.php#constant.curlopt-rtsp-client-cseq">CURLOPT_RTSP_CLIENT_CSEQ</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set an <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> with the CSEQ number to issue for the next RTSP request.
     Useful if the application is resuming a previously broken connection.
     The CSEQ increments from this new number henceforth.
     Defaults to <code class="literal">0</code>.
     Available as of cURL 7.20.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-rtsp-request">
    <strong><code><a href="curl.constants.php#constant.curlopt-rtsp-request">CURLOPT_RTSP_REQUEST</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Sets the kind of RTSP request to make.
     Must be one of the <strong><code><a href="curl.constants.php#constant.curl-rtspreq-announce">CURL_RTSPREQ_<span class="replaceable">*</span></a></code></strong>
     constants.
     Available as of cURL 7.20.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-rtsp-server-cseq">
    <strong><code><a href="curl.constants.php#constant.curlopt-rtsp-server-cseq">CURLOPT_RTSP_SERVER_CSEQ</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set an <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> with the CSEQ number to expect
     for the next RTSP Server to Client request.
     This feature (listening for Server requests) is unimplemented.
     Defaults to <code class="literal">0</code>.
     Available as of cURL 7.20.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-rtsp-session-id">
    <strong><code><a href="curl.constants.php#constant.curlopt-rtsp-session-id">CURLOPT_RTSP_SESSION_ID</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the value of the current RTSP Session ID for the handle.
     Once this value is set to any non-<strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> value,
     cURL returns <strong><code>CURLE_RTSP_SESSION_ERROR</code></strong>
     if the ID received from the server does not match.
     If set to <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>, cURL automatically sets the ID
     the first time the server sets it in a response.
     Defaults to <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>
     Available as of cURL 7.20.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-rtsp-stream-uri">
    <strong><code><a href="curl.constants.php#constant.curlopt-rtsp-stream-uri">CURLOPT_RTSP_STREAM_URI</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Sets a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the stream URI to operate on.
     If not set, cURL defaults to operating on generic server options
     by passing <code class="literal">*</code> in the place of the RTSP Stream URI.
     When working with RTSP, <code class="literal">CURLOPT_RTSP_STREAM_URI</code>
     indicates what URL to send to the server in the request header
     while the <code class="literal">CURLOPT_URL</code> indicates
     where to make the connection to.
     Available as of cURL 7.20.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-rtsp-transport">
    <strong><code><a href="curl.constants.php#constant.curlopt-rtsp-transport">CURLOPT_RTSP_TRANSPORT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set the <code class="literal">Transport:</code> header for this RTSP session.
     Available as of cURL 7.20.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-safe-upload">
    <strong><code><a href="curl.constants.php#constant.curlopt-safe-upload">CURLOPT_SAFE_UPLOAD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     始终为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>，在 <strong><code><a href="curl.constants.php#constant.curlopt-postfields">CURLOPT_POSTFIELDS</a></code></strong> 中禁用了对上传文件的 <code class="literal">@</code>
     前缀的支持，这意味着以 <code class="literal">@</code> 开头的值可以作为字段安全地传递。上传可使用 <span class="classname"><a href="class.curlfile.php" class="classname">CURLFile</a></span> 替代。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-sasl-authzid">
    <strong><code><a href="curl.constants.php#constant.curlopt-sasl-authzid">CURLOPT_SASL_AUTHZID</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     The authorization identity (authzid) <span class="type"><a href="language.types.string.php" class="type string">string</a></span> for the transfer. Only applicable to the PLAIN SASL
     authentication mechanism where it is optional. When not specified, only the authentication identity
     (authcid) as specified by the username will be sent to the server, along with the password.
     The server will derive the authzid from the authcid when not provided, which it will then use internally.
     Available as of PHP 8.2.0 and cURL 7.66.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-sasl-ir">
    <strong><code><a href="curl.constants.php#constant.curlopt-sasl-ir">CURLOPT_SASL_IR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时开启，收到首包（first packet）后发送初始的响应（initial response）。自 PHP 7.0.7 和 cURL 7.31.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-service-name">
    <strong><code><a href="curl.constants.php#constant.curlopt-service-name">CURLOPT_SERVICE_NAME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the authentication service name.
     Available as of PHP 7.0.7 and cURL 7.43.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-share">
    <strong><code><a href="curl.constants.php#constant.curlopt-share">CURLOPT_SHARE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <span class="function"><a href="function.curl-share-init.php" class="function">curl_share_init()</a></span> 的结果。使 cURL 可以使用共享句柄中的数据。自 cURL 7.10 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-socks5-auth">
    <strong><code><a href="curl.constants.php#constant.curlopt-socks5-auth">CURLOPT_SOCKS5_AUTH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     用于 SOCKS5 验证方法。选项是：
     <span class="simplelist"><strong><code><a href="curl.constants.php#constant.curlauth-basic">CURLAUTH_BASIC</a></code></strong>, <strong><code><a href="curl.constants.php#constant.curlauth-gssapi">CURLAUTH_GSSAPI</a></code></strong>, <strong><code><a href="curl.constants.php#constant.curlauth-none">CURLAUTH_NONE</a></code></strong></span>。当设置了多种方法时，cURL 将轮询服务器以查看其支持哪些方法并选择最佳方法。默认为
     <code class="literal">CURLAUTH_BASIC|CURLAUTH_GSSAPI</code>。使用 <strong><code><a href="curl.constants.php#constant.curlopt-proxyuserpwd">CURLOPT_PROXYUSERPWD</a></code></strong>
     选项设置真实的用户名和密码。自 PHP 7.3.0 和 cURL 7.55.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-socks5-gssapi-nec">
    <strong><code><a href="curl.constants.php#constant.curlopt-socks5-gssapi-nec">CURLOPT_SOCKS5_GSSAPI_NEC</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set to <code class="literal">1</code> to enable and <code class="literal">0</code> to disable
     the unprotected exchange of the protection mode negotiation
     as part of the GSSAPI negotiation.
     Available as of cURL 7.19.4.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-socks5-gssapi-service">
    <strong><code><a href="curl.constants.php#constant.curlopt-socks5-gssapi-service">CURLOPT_SOCKS5_GSSAPI_SERVICE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     Set a <span class="type"><a href="language.types.string.php" class="type string">string</a></span> holding the name of the SOCKS5 service.
     Defaults to <code class="literal">rcmd</code>.
     Available as of cURL 7.19.4 and deprecated as of cURL 7.49.0.
     Use <strong><code><a href="curl.constants.php#constant.curlopt-proxy-service-name">CURLOPT_PROXY_SERVICE_NAME</a></code></strong> instead.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ssh-auth-types">
    <strong><code><a href="curl.constants.php#constant.curlopt-ssh-auth-types">CURLOPT_SSH_AUTH_TYPES</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A bitmask consisting of one or more of the following constants:
     <span class="simplelist"><strong><code><a href="curl.constants.php#constant.curlssh-auth-publickey">CURLSSH_AUTH_PUBLICKEY</a></code></strong>, <strong><code><a href="curl.constants.php#constant.curlssh-auth-password">CURLSSH_AUTH_PASSWORD</a></code></strong>, <strong><code><a href="curl.constants.php#constant.curlssh-auth-host">CURLSSH_AUTH_HOST</a></code></strong>, <strong><code><a href="curl.constants.php#constant.curlssh-auth-keyboard">CURLSSH_AUTH_KEYBOARD</a></code></strong>, <strong><code><a href="curl.constants.php#constant.curlssh-auth-agent">CURLSSH_AUTH_AGENT</a></code></strong>, <strong><code><a href="curl.constants.php#constant.curlssh-auth-any">CURLSSH_AUTH_ANY</a></code></strong></span>.
     Defaults to <strong><code><a href="curl.constants.php#constant.curlssh-auth-any">CURLSSH_AUTH_ANY</a></code></strong>.
     Available as of cURL 7.16.1.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ssh-compression">
    <strong><code><a href="curl.constants.php#constant.curlopt-ssh-compression">CURLOPT_SSH_COMPRESSION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> to enable, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> to disable built-in SSH compression.
     Note that the server can disregard this request.
     Defaults to <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
     Available as of PHP 7.3.0 and cURL 7.56.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ssh-hostkeyfunction">
    <strong><code><a href="curl.constants.php#constant.curlopt-ssh-hostkeyfunction">CURLOPT_SSH_HOSTKEYFUNCTION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span> that will be called when SSH host key verification is needed.
     The callback must have the following signature:
     <div class="methodsynopsis dc-description">
      <span class="methodname"><span class="replaceable">callback</span></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$curlHandle</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$keyType</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$key</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$keyLength</code></span><br>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

     <dl>
      
       <dt><code class="parameter">curlHandle</code></dt>
       <dd>
        <span class="simpara">
         cURL 句柄。
        </span>
       </dd>
      
      
       <dt><code class="parameter">keyType</code></dt>
       <dd>
        <span class="simpara">
         One of the <strong><code>CURLKHTYPE_<span class="replaceable">*</span></code></strong> key types.
        </span>
       </dd>
      
      
       <dt><code class="parameter">key</code></dt>
       <dd>
        <span class="simpara">
         The key to check.
        </span>
       </dd>
      
      
       <dt><code class="parameter">keyLength</code></dt>
       <dd>
        <span class="simpara">
         The length of the key in bytes.
        </span>
       </dd>
      
     </dl>
     This callback overrides <strong><code><a href="curl.constants.php#constant.curlopt-ssh-knownhosts">CURLOPT_SSH_KNOWNHOSTS</a></code></strong>.
     Available as of PHP 8.3.0 and cURL 7.84.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ssh-host-public-key-md5">
    <strong><code><a href="curl.constants.php#constant.curlopt-ssh-host-public-key-md5">CURLOPT_SSH_HOST_PUBLIC_KEY_MD5</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> containing 32 hexadecimal digits which should contain the
     MD5 checksum of the remote host&#039;s public key, and cURL will reject
     the connection to the host unless the md5sums match.
     This option is only for SCP and SFTP transfers.
     Available as of cURL 7.17.1.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ssh-host-public-key-sha256">
    <strong><code><a href="curl.constants.php#constant.curlopt-ssh-host-public-key-sha256">CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     A <span class="type"><a href="language.types.string.php" class="type string">string</a></span> with the base64-encoded SHA256 hash
     of the remote host&#039;s public key.
     The transfer will fail if the given hash does not match the hash the remote host provides.
     Available as of PHP 8.2.0 and cURL 7.80.0.
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ssh-knownhosts">
    <strong><code><a href="curl.constants.php#constant.curlopt-ssh-knownhosts">CURLOPT_SSH_KNOWNHOSTS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为要使用的 <var class="filename">known_host</var> 文件的文件名，该文件应使用 libssh2 支持的 OpenSSH 文件格式。自 cURL 7.19.6 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ssh-private-keyfile">
    <strong><code><a href="curl.constants.php#constant.curlopt-ssh-private-keyfile">CURLOPT_SSH_PRIVATE_KEYFILE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     私钥的文件名。如果未指定，cURL 会默认使用 <var class="filename">$HOME/.ssh/id_dsa</var>（如果设置了 HOME
     环境变量的话），或者在 HOME 未设置的情况下，默认使用当前目录下的 <code class="literal">id_dsa</code>
     文件。如果文件受密码保护，则需要使用 <strong><code><a href="curl.constants.php#constant.curlopt-keypasswd">CURLOPT_KEYPASSWD</a></code></strong> 设置密码，自 cURL 7.16.1 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ssh-public-keyfile">
    <strong><code><a href="curl.constants.php#constant.curlopt-ssh-public-keyfile">CURLOPT_SSH_PUBLIC_KEYFILE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     公钥的文件名。如果未指定，cURL 会默认使用 <var class="filename">$HOME/.ssh/id_dsa.pub</var>（如果设置了 HOME
     环境变量的话），或者在 HOME 未设置的情况下，默认使用当前目录下的 <code class="literal">id_dsa.pub</code>
     文件。自 cURL 7.16.1 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-sslcert">
    <strong><code><a href="curl.constants.php#constant.curlopt-sslcert">CURLOPT_SSLCERT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     包含 PEM 格式证书的文件名称。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-sslcertpasswd">
    <strong><code><a href="curl.constants.php#constant.curlopt-sslcertpasswd">CURLOPT_SSLCERTPASSWD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     使用 <strong><code><a href="curl.constants.php#constant.curlopt-sslcert">CURLOPT_SSLCERT</a></code></strong> 证书所需的密码。自 cURL 7.1.0 起可用，自 cURL 7.17.0 起已弃用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-sslcerttype">
    <strong><code><a href="curl.constants.php#constant.curlopt-sslcerttype">CURLOPT_SSLCERTTYPE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span> 的证书格式。支持的格式有：
     <span class="simplelist"><code class="literal">PEM</code>, <code class="literal">DER</code>, <code class="literal">ENG</code>, <code class="literal">P12</code></span>。
     <code class="literal">P12</code>（用于 PKCS#12 编码文件）自 OpenSSL 0.9.3
     起可用。默认 <code class="literal">PEM</code>。自 cURL 7.9.3 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-sslcert-blob">
    <strong><code><a href="curl.constants.php#constant.curlopt-sslcert-blob">CURLOPT_SSLCERT_BLOB</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     包含 SSL 客户端证书的 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>。自 PHP 8.1.0 和 cURL 7.71.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-sslengine">
    <strong><code><a href="curl.constants.php#constant.curlopt-sslengine">CURLOPT_SSLENGINE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="curl.constants.php#constant.curlopt-sslkey">CURLOPT_SSLKEY</a></code></strong> 中指定私有 SSL 密钥的加密引擎的 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
     标识符。自 cURL 7.9.3 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-sslengine-default">
    <strong><code><a href="curl.constants.php#constant.curlopt-sslengine-default">CURLOPT_SSLENGINE_DEFAULT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     加密引擎的 <span class="type"><a href="language.types.string.php" class="type string">string</a></span> 标识符，用于非对称加密操作。自 cURL 7.9.3 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-sslkey">
    <strong><code><a href="curl.constants.php#constant.curlopt-sslkey">CURLOPT_SSLKEY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     包含私有 SSL 密钥的文件名。自 cURL 7.9.3 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-sslkeypasswd">
    <strong><code><a href="curl.constants.php#constant.curlopt-sslkeypasswd">CURLOPT_SSLKEYPASSWD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     使用 <strong><code><a href="curl.constants.php#constant.curlopt-sslkey">CURLOPT_SSLKEY</a></code></strong> 中指定私有 SSL 密钥所需的秘密密码。
     <blockquote class="note"><p><strong class="note">注意</strong>: 
      <p class="para">
       由于此选项包含敏感密码，请确保妥善保管包含该选项的 PHP 脚本。
      </p>
     </p></blockquote>
     自 cURL 7.9.3 起可用并且自 cURL 7.17.0 起弃用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-sslkeytype">
    <strong><code><a href="curl.constants.php#constant.curlopt-sslkeytype">CURLOPT_SSLKEYTYPE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="curl.constants.php#constant.curlopt-sslkey">CURLOPT_SSLKEY</a></code></strong> 中指定私有 SSL 密钥的秘钥类型。支持的密钥类型有：
     <span class="simplelist"><code class="literal">PEM</code>, <code class="literal">DER</code>, <code class="literal">ENG</code></span>。默认为 <code class="literal">PEM</code>。自 cURL 7.9.3 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-sslkey-blob">
    <strong><code><a href="curl.constants.php#constant.curlopt-sslkey-blob">CURLOPT_SSLKEY_BLOB</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     客户端证书的 <span class="type"><a href="language.types.string.php" class="type string">string</a></span> 私钥。自 PHP 8.1.0 和 cURL 7.71.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-sslversion">
    <strong><code><a href="curl.constants.php#constant.curlopt-sslversion">CURLOPT_SSLVERSION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="curl.constants.php#constant.curl-sslversion-default">CURL_SSLVERSION_<span class="replaceable">*</span></a></code></strong> 常量之一。
     <div class="warning"><strong class="warning">警告</strong>
      <p class="simpara">
       最好不要设置此选项并使用默认值。因为考虑到 SSLv2 和 SSLv3 中已知的漏洞，将其设置为
       <strong><code><a href="curl.constants.php#constant.curl-sslversion-sslv2">CURL_SSLVERSION_SSLv2</a></code></strong> 或 <strong><code><a href="curl.constants.php#constant.curl-sslversion-sslv3">CURL_SSLVERSION_SSLv3</a></code></strong> 非常危险。
      </p>
     </div>
     默认为 <strong><code><a href="curl.constants.php#constant.curl-sslversion-default">CURL_SSLVERSION_DEFAULT</a></code></strong>。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ssl-cipher-list">
    <strong><code><a href="curl.constants.php#constant.curlopt-ssl-cipher-list">CURLOPT_SSL_CIPHER_LIST</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     用于 TLS 1.2（1.1、1.0）连接的以冒号分隔的密码 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>。自 cURL 7.9 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ssl-ec-curves">
    <strong><code><a href="curl.constants.php#constant.curlopt-ssl-ec-curves">CURLOPT_SSL_EC_CURVES</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     椭圆曲线算法的冒号分隔列表。例如，<code class="literal">X25519:P-521</code> 是两个椭圆曲线的有效列表。此选项定义
     SSL 握手中的客户端密钥交换算法（如果 SSL 后端 cURL 编译为支持该算法）。自 PHP 8.2.0 和 cURL 7.73.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ssl-enable-alpn">
    <strong><code><a href="curl.constants.php#constant.curlopt-ssl-enable-alpn">CURLOPT_SSL_ENABLE_ALPN</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> 时禁用 SSL 握手中的 ALPN（如果 SSL 后端的
     cURL 内建支持）用于协商到 http2。自 PHP 7.0.7 和 cURL 7.36.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ssl-enable-npn">
    <strong><code><a href="curl.constants.php#constant.curlopt-ssl-enable-npn">CURLOPT_SSL_ENABLE_NPN</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> 时禁用 SSL 握手中的 NPN（如果 SSL 后端的 libcurl 内建支持），用于协商到
     http2。自 PHP 7.0.7 和 cURL 7.36.0 起可用，并且自 cURL 7.86.0 起弃用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ssl-falsestart">
    <strong><code><a href="curl.constants.php#constant.curlopt-ssl-falsestart">CURLOPT_SSL_FALSESTART</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 表示启用，<strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> 表示禁用 TLS 错误启动，这是 TLS 客户端在验证服务器 <code class="literal">Finished</code>
     消息之前开始发送应用程序数据的模式。自 PHP 7.0.7 和 cURL 7.42.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ssl-options">
    <strong><code><a href="curl.constants.php#constant.curlopt-ssl-options">CURLOPT_SSL_OPTIONS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置 SSL 行为选项，是 <strong><code><a href="curl.constants.php#constant.curlsslopt-allow-beast">CURLSSLOPT_<span class="replaceable">*</span></a></code></strong>
     常量的位掩码。默认未设置任何位。自 PHP 7.0.7 和 cURL 7.25.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ssl-sessionid-cache">
    <strong><code><a href="curl.constants.php#constant.curlopt-ssl-sessionid-cache">CURLOPT_SSL_SESSIONID_CACHE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <code class="literal">0</code> 以禁用，设置为 <code class="literal">1</code> 以启用 SSL 会话
     ID 缓存。默认情况下，所有传输均启用缓存。自 cURL 7.16.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ssl-verifyhost">
    <strong><code><a href="curl.constants.php#constant.curlopt-ssl-verifyhost">CURLOPT_SSL_VERIFYHOST</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <code class="literal">2</code> 时验证 SSL 对等证书中的公用名称字段或主题备用名称（Subject Alternate Name，简称
     SNA）字段是否与提供的主机名匹配。<code class="literal">0</code> 时不检查名称。不应使用 <code class="literal">1</code>。在生产环境中，此选项的值应保持为
     <code class="literal">2</code>（默认值）。自 cURL 7.8.1 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ssl-verifypeer">
    <strong><code><a href="curl.constants.php#constant.curlopt-ssl-verifypeer">CURLOPT_SSL_VERIFYPEER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> 时禁止 cURL 验证对等证书（peer&#039;s certificate）。要验证的交换证书可以在 <strong><code><a href="curl.constants.php#constant.curlopt-cainfo">CURLOPT_CAINFO</a></code></strong>
     选项中设置，或在 <strong><code><a href="curl.constants.php#constant.curlopt-capath">CURLOPT_CAPATH</a></code></strong> 中设置证书目录。自 cURL 7.10 起默认为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>。自 cURL 7.10
     起安装默认的 CA 证书包。自 cURL 7.4.2 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ssl-verifystatus">
    <strong><code><a href="curl.constants.php#constant.curlopt-ssl-verifystatus">CURLOPT_SSL_VERIFYSTATUS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时启用或者 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> 时禁用验证证书状态。自 PHP 7.0.7 和 cURL 7.41.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-stderr">
    <strong><code><a href="curl.constants.php#constant.curlopt-stderr">CURLOPT_STDERR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     接受指向替代位置的文件句柄 <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>，以将错误输出到 <strong><code><a href="reserved.constants.php#constant.stderr">STDERR</a></code></strong> 以外的其他位置。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-stream-weight">
    <strong><code><a href="curl.constants.php#constant.curlopt-stream-weight">CURLOPT_STREAM_WEIGHT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置 stream weight 数值（<code class="literal">1</code> 和 <code class="literal">256</code> 之间的数字）。自 PHP 7.0.7 和 cURL 7.46.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-suppress-connect-headers">
    <strong><code><a href="curl.constants.php#constant.curlopt-suppress-connect-headers">CURLOPT_SUPPRESS_CONNECT_HEADERS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     当使用 <strong><code><a href="curl.constants.php#constant.curlopt-httpproxytunnel">CURLOPT_HTTPPROXYTUNNEL</a></code></strong> 并发出 CONNECT 请求时，设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 以抑制来自用户 callback
     函数 <strong><code><a href="curl.constants.php#constant.curlopt-headerfunction">CURLOPT_HEADERFUNCTION</a></code></strong> 和 <strong><code><a href="curl.constants.php#constant.curlopt-writefunction">CURLOPT_WRITEFUNCTION</a></code></strong> 的代理 CONNECT
     响应 header。默认为 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。自 PHP 7.3.0 和 cURL 7.54.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-tcp-fastopen">
    <strong><code><a href="curl.constants.php#constant.curlopt-tcp-fastopen">CURLOPT_TCP_FASTOPEN</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时启用或者 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> 时禁用 TCP Fast Open。自 PHP 7.0.7 和 cURL 7.49.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-tcp-keepalive">
    <strong><code><a href="curl.constants.php#constant.curlopt-tcp-keepalive">CURLOPT_TCP_KEEPALIVE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     如果设置为 <code class="literal">1</code>，将发送 TCP keepalive 探针。这些探针的延迟和频率可以通过 <strong><code><a href="curl.constants.php#constant.curlopt-tcp-keepidle">CURLOPT_TCP_KEEPIDLE</a></code></strong>
     和 <strong><code><a href="curl.constants.php#constant.curlopt-tcp-keepintvl">CURLOPT_TCP_KEEPINTVL</a></code></strong> 选项来控制，前提是操作系统支持它们。如果设置为 <code class="literal">0</code>（默认值），将禁用
     keepalive 探针。可以使用 <strong><code><a href="curl.constants.php#constant.curlopt-tcp-keepcnt">CURLOPT_TCP_KEEPCNT</a></code></strong> 选项设置最大探测次数。自 cURL 7.25.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-tcp-keepidle">
    <strong><code><a href="curl.constants.php#constant.curlopt-tcp-keepidle">CURLOPT_TCP_KEEPIDLE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置延迟秒数，如果启用了 <strong><code><a href="curl.constants.php#constant.curlopt-tcp-keepalive">CURLOPT_TCP_KEEPALIVE</a></code></strong>，操作系统将在连接空闲时等待，然后再发送
     keepalive 探针。并非所有操作系统都支持此选项。默认值为 <code class="literal">60</code>。自 cURL 7.25.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-tcp-keepintvl">
    <strong><code><a href="curl.constants.php#constant.curlopt-tcp-keepintvl">CURLOPT_TCP_KEEPINTVL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置间隔（以秒为单位），如果启用了 <strong><code><a href="curl.constants.php#constant.curlopt-tcp-keepalive">CURLOPT_TCP_KEEPALIVE</a></code></strong>，操作系统将在发送
     keepalive 探针之间等待。并非所有操作系统都支持此选项。默认值为 <code class="literal">60</code>。自 cURL 7.25.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-tcp-keepcnt">
    <strong><code><a href="curl.constants.php#constant.curlopt-tcp-keepcnt">CURLOPT_TCP_KEEPCNT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置 TCP 保持活动探测的最大数量。默认值为 <code class="literal">9</code>。自 PHP 8.4.0 和 cURL 8.9.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-tcp-nodelay">
    <strong><code><a href="curl.constants.php#constant.curlopt-tcp-nodelay">CURLOPT_TCP_NODELAY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时禁用 TCP 的 Nagle 算法，就是减少网络上的小数据包数量。默认是 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>。自 cURL 7.11.2 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-telnetoptions">
    <strong><code><a href="curl.constants.php#constant.curlopt-telnetoptions">CURLOPT_TELNETOPTIONS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置要传递给 telnet 协商的由 <span class="type"><a href="language.types.string.php" class="type string">string</a></span> 组成的 <span class="type"><a href="language.types.array.php" class="type array">array</a></span>。变量应采用
     <code class="literal">&lt;option=value&gt;</code> 格式。cURL 支持选项 <code class="literal">TTYPE</code>、<code class="literal">XDISPLOC</code>
     和 <code class="literal">NEW_ENV</code>。自 cURL 7.7.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-tftp-blksize">
    <strong><code><a href="curl.constants.php#constant.curlopt-tftp-blksize">CURLOPT_TFTP_BLKSIZE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置用于 TFTP 数据传输的块大小。有效范围为 <code class="literal">8</code>-<code class="literal">65464</code>
     字节。如果未指定此选项，则使用默认值 <code class="literal">512</code>
     字节。仅当远程服务器支持时才使用指定的块大小。如果服务器未返回选项确认或返回没有块大小的选项确认，则使用默认值
     <code class="literal">512</code> 字节。自 cURL 7.19.4 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-tftp-no-options">
    <strong><code><a href="curl.constants.php#constant.curlopt-tftp-no-options">CURLOPT_TFTP_NO_OPTIONS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时不发送 TFTP 的 options 请求。默认为 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。自 PHP 7.0.7 和 cURL 7.48.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-timecondition">
    <strong><code><a href="curl.constants.php#constant.curlopt-timecondition">CURLOPT_TIMECONDITION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置如何对待 <strong><code><a href="curl.constants.php#constant.curlopt-timevalue">CURLOPT_TIMEVALUE</a></code></strong>。使用 <code class="parameter">CURL_TIMECOND_IFMODSINCE</code>，仅在页面
     <strong><code><a href="curl.constants.php#constant.curlopt-timevalue">CURLOPT_TIMEVALUE</a></code></strong> 之后修改，才返回页面。没有修改则返回 <code class="literal">304 Not Modified</code>
     header，假设设置了 <strong><code><a href="curl.constants.php#constant.curlopt-header">CURLOPT_HEADER</a></code></strong> 为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>。<code class="parameter">CURL_TIMECOND_IFUNMODSINCE</code>
     则起相反的效果。使用 <strong><code><a href="curl.constants.php#constant.curl-timecond-none">CURL_TIMECOND_NONE</a></code></strong> 忽略 <strong><code><a href="curl.constants.php#constant.curlopt-timevalue">CURLOPT_TIMEVALUE</a></code></strong> 并始终返回页面。默认为
     <code class="parameter">CURL_TIMECOND_IFMODSINCE</code>。在 cURL 7.46.0 之前，默认值为 <strong><code><a href="curl.constants.php#constant.curl-timecond-ifmodsince">CURL_TIMECOND_IFMODSINCE</a></code></strong>。自
     cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-timeout">
    <strong><code><a href="curl.constants.php#constant.curlopt-timeout">CURLOPT_TIMEOUT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     允许 cURL 函数执行的最长秒数。默认值为
     <code class="literal">0</code>，表示函数在传输过程中永不超时。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-timeout-ms">
    <strong><code><a href="curl.constants.php#constant.curlopt-timeout-ms">CURLOPT_TIMEOUT_MS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     允许 cURL 允许执行的最长毫秒数。如果 cURL 编译时使用系统标准的名称解析器（standard system name
     resolver），那部分的连接仍旧使用以秒计的超时解决方案，最小超时时间还是一秒钟。默认值为
     <code class="literal">0</code>，表示函数在传输过程中永不超时。自 cURL 7.16.2 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-timevalue">
    <strong><code><a href="curl.constants.php#constant.curlopt-timevalue">CURLOPT_TIMEVALUE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     秒数，从 1970 年 1 月 1 日开始。这个时间将由 <strong><code><a href="curl.constants.php#constant.curlopt-timecondition">CURLOPT_TIMECONDITION</a></code></strong> 使用。默认
     <code class="literal">0</code>。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-timevalue-large">
    <strong><code><a href="curl.constants.php#constant.curlopt-timevalue-large">CURLOPT_TIMEVALUE_LARGE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     自 1970 年 1 月 1 日以来的秒数。该时间将由 <strong><code><a href="curl.constants.php#constant.curlopt-timecondition">CURLOPT_TIMECONDITION</a></code></strong> 使用。默认为 0。此选项与
     <strong><code><a href="curl.constants.php#constant.curlopt-timevalue">CURLOPT_TIMEVALUE</a></code></strong> 之间的区别在于参数的类型。“long”仅用于 32 位系统上，必须使用此选项来设置 2038
     年以后的日期。自 PHP 7.3.0 和 cURL 7.59.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-tls13-ciphers">
    <strong><code><a href="curl.constants.php#constant.curlopt-tls13-ciphers">CURLOPT_TLS13_CIPHERS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <span class="type"><a href="language.types.string.php" class="type string">string</a></span>，包含用于连接到 TLS 1.3 连接的以冒号分隔的密码套件列表。此选项目前仅在 cURL 构建为
     OpenSSL 1.1.1 或更高版本时使用。当使用不同的 SSL 后端时，可以使用 <strong><code><a href="curl.constants.php#constant.curlopt-ssl-cipher-list">CURLOPT_SSL_CIPHER_LIST</a></code></strong>
     选项设置 TLS 1.3 密码套件。自 PHP 7.3.0 和 cURL 7.61.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-tlsauth-password">
    <strong><code><a href="curl.constants.php#constant.curlopt-tlsauth-password">CURLOPT_TLSAUTH_PASSWORD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置用于 <strong><code><a href="curl.constants.php#constant.curlopt-tlsauth-type">CURLOPT_TLSAUTH_TYPE</a></code></strong> 选项指定 TLS 身份验证方法的密码。同时也需要设置
     <strong><code><a href="curl.constants.php#constant.curlopt-tlsauth-username">CURLOPT_TLSAUTH_USERNAME</a></code></strong> 选项。此功能依赖于 TLS SRP，不适用于 TLS 1.3。自
     cURL 7.21.4 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-tlsauth-type">
    <strong><code><a href="curl.constants.php#constant.curlopt-tlsauth-type">CURLOPT_TLSAUTH_TYPE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置 TLS 身份验证方法的 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>。支持的方法是 <code class="literal">SRP</code>（TLS
     安全远程密码身份验证）。自 cURL 7.21.4 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-tlsauth-username">
    <strong><code><a href="curl.constants.php#constant.curlopt-tlsauth-username">CURLOPT_TLSAUTH_USERNAME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>，其中包含要用于 <strong><code><a href="curl.constants.php#constant.curlopt-tlsauth-type">CURLOPT_TLSAUTH_TYPE</a></code></strong> 选项指定 TLS
     身份验证方法的用户名。同时需要设置 <strong><code><a href="curl.constants.php#constant.curlopt-tlsauth-password">CURLOPT_TLSAUTH_PASSWORD</a></code></strong> 选项。此功能依赖于
     TLS SRP，不适用于 TLS 1.3。自 cURL 7.21.4 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-transfer-encoding">
    <strong><code><a href="curl.constants.php#constant.curlopt-transfer-encoding">CURLOPT_TRANSFER_ENCODING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <code class="literal">1</code> 以启用，设置为 <code class="literal">0</code> 以禁用在传出 HTTP
     请求中请求压缩<code class="literal">传输编码</code>。如果服务器以压缩<code class="literal">传输编码</code>响应，cURL
     将在接收时自动解压缩。默认为 <code class="literal">0</code>。自 cURL 7.21.6 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-transfertext">
    <strong><code><a href="curl.constants.php#constant.curlopt-transfertext">CURLOPT_TRANSFERTEXT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时 FTP 传输使用 ASCII 模式。对于 LDAP，会检索纯文本信息而非 HTML。在 Windows 系统上，系统不会把
     <strong><code><a href="reserved.constants.php#constant.stdout">STDOUT</a></code></strong> 设置成二进制模式。默认是 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。自 cURL 7.1.1 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-unix-socket-path">
    <strong><code><a href="curl.constants.php#constant.curlopt-unix-socket-path">CURLOPT_UNIX_SOCKET_PATH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     启用时使用 Unix domain socket 作为连接端点，并设置路径为指定 <span class="type"><a href="language.types.string.php" class="type string">string</a></span>。设置为 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>
     时禁用。默认为 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>。自 PHP 7.0.7 和 cURL 7.40.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-unrestricted-auth">
    <strong><code><a href="curl.constants.php#constant.curlopt-unrestricted-auth">CURLOPT_UNRESTRICTED_AUTH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时在使用 <strong><code><a href="curl.constants.php#constant.curlopt-followlocation">CURLOPT_FOLLOWLOCATION</a></code></strong> 重定向 header 中的多个 location
     时继续发送用户名和密码信息，哪怕主机名已改变。默认为 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。自 cURL 7.10.4 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-upkeep-interval-ms">
    <strong><code><a href="curl.constants.php#constant.curlopt-upkeep-interval-ms">CURLOPT_UPKEEP_INTERVAL_MS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     某些协议具有“连接维护”机制。这些机制通常会在现有连接上发送一些流量以保持处于活动状态。此选项定义连接维护间隔。目前，唯一具有连接维护机制的协议是
     HTTP/2。当超过连接维护间隔时，将在连接上发送 HTTP/2 PING 帧。默认为 <strong><code>CURL_UPKEEP_INTERVAL_DEFAULT</code></strong>，目前为
     <code class="literal">60</code> 秒。自 PHP 8.2.0 和 cURL 7.62.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-upload">
    <strong><code><a href="curl.constants.php#constant.curlopt-upload">CURLOPT_UPLOAD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时准备执行上传。默认 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-upload-buffersize">
    <strong><code><a href="curl.constants.php#constant.curlopt-upload-buffersize">CURLOPT_UPLOAD_BUFFERSIZE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     cURL 上传缓冲区的首选缓冲区字节数。上传缓冲区默认为 64 KB。允许设置的最大缓冲区为 2
     MB。允许设置的最小缓冲区为 16 KB。自 PHP 8.2.0 和 cURL 7.62.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-url">
    <strong><code><a href="curl.constants.php#constant.curlopt-url">CURLOPT_URL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     要获取的 URL。也可以在 <span class="function"><a href="function.curl-init.php" class="function">curl_init()</a></span> 初始化会话时设置。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-use-ssl">
    <strong><code><a href="curl.constants.php#constant.curlopt-use-ssl">CURLOPT_USE_SSL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置使用 FTP、SMTP、POP3、IMAP 等进行传输时所需的 SSL/TLS 级别。这些都是从纯文本开始并使用
     STARTTLS 命令“升级”到 SSL 的协议。设置为 <strong><code><a href="curl.constants.php#constant.curlusessl-all">CURLUSESSL_<span class="replaceable">*</span></a></code></strong>
     常量之一。自 cURL 7.17.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-useragent">
    <strong><code><a href="curl.constants.php#constant.curlopt-useragent">CURLOPT_USERAGENT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     HTTP 请求中 <code class="literal">User-Agent: </code> header 的内容。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-username">
    <strong><code><a href="curl.constants.php#constant.curlopt-username">CURLOPT_USERNAME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     身份验证时使用的用户名。自 cURL 7.19.1 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-userpwd">
    <strong><code><a href="curl.constants.php#constant.curlopt-userpwd">CURLOPT_USERPWD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     用于连接的用户名和密码，格式为 <code class="literal">[username]:[password]</code>。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-verbose">
    <strong><code><a href="curl.constants.php#constant.curlopt-verbose">CURLOPT_VERBOSE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 时输出所有的信息，写入到 <strong><code><a href="reserved.constants.php#constant.stderr">STDERR</a></code></strong>，或在 <strong><code><a href="curl.constants.php#constant.curlopt-stderr">CURLOPT_STDERR</a></code></strong>
     中指定的文件。默认 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-wildcardmatch">
    <strong><code><a href="curl.constants.php#constant.curlopt-wildcardmatch">CURLOPT_WILDCARDMATCH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     设置为 <code class="literal">1</code> 以根据文件名模式传输多个文件。该模式可以指定为 <strong><code><a href="curl.constants.php#constant.curlopt-url">CURLOPT_URL</a></code></strong>
     选项的一部分，在 URL（文件名）的最后一部分使用类似 fnmatch 的模式（Shell 模式匹配）。自 cURL 7.21.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-writefunction">
    <strong><code><a href="curl.constants.php#constant.curlopt-writefunction">CURLOPT_WRITEFUNCTION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     具有以下签名的 <span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span>：
     <div class="methodsynopsis dc-description">
      <span class="methodname"><span class="replaceable">callback</span></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$curlHandle</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$data</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

     <dl>
      
       <dt><code class="parameter">curlHandle</code></dt>
       <dd>
        <span class="simpara">
         cURL 句柄。
        </span>
       </dd>
      
      
       <dt><code class="parameter">data</code></dt>
       <dd>
        <span class="simpara">
         要写入的数据
        </span>
       </dd>
      
     </dl>
     数据必须使用 callback 保存，并且 callback 必须返回写入的准确字节数，否则传输将因错误而中止。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-writeheader">
    <strong><code><a href="curl.constants.php#constant.curlopt-writeheader">CURLOPT_WRITEHEADER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     接受文件句柄 <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>，将传输的 header 部分写入该文件。自 cURL 7.1.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-ws-options">
    <strong><code><a href="curl.constants.php#constant.curlopt-ws-options">CURLOPT_WS_OPTIONS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     接受位掩码设置 WebSocket 行为选项。唯一可用的选项是 <strong><code><a href="curl.constants.php#constant.curlws-raw-mode">CURLWS_RAW_MODE</a></code></strong>。默认为 <code class="literal">0</code>。自 PHP 8.3.0 和 cURL 7.86.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-xferinfofunction">
    <strong><code><a href="curl.constants.php#constant.curlopt-xferinfofunction">CURLOPT_XFERINFOFUNCTION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     具有以下签名的 <span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span>：
     <div class="methodsynopsis dc-description">
      <span class="methodname"><span class="replaceable">callback</span></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$curlHandle</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$bytesToDownload</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$bytesDownloaded</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$bytesToUpload</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$bytesUploaded</code></span><br>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

     <dl>
      
       <dt><code class="parameter">curlHandle</code></dt>
       <dd>
        <span class="simpara">
         cURL 句柄。
        </span>
       </dd>
      
      
       <dt><code class="parameter">bytesToDownload</code></dt>
       <dd>
        <span class="simpara">
         本次传输预计下载的总字节数。
        </span>
       </dd>
      
      
       <dt><code class="parameter">bytesDownloaded</code></dt>
       <dd>
        <span class="simpara">
         迄今已下载的字节数。
        </span>
       </dd>
      
      
       <dt><code class="parameter">bytesToUpload</code></dt>
       <dd>
        <span class="simpara">
         本次传输预计上传的总字节数。
        </span>
       </dd>
      
      
       <dt><code class="parameter">bytesUploaded</code></dt>
       <dd>
        <span class="simpara">
         迄今已上传的字节数。
        </span>
       </dd>
      
     </dl>
     返回 <code class="literal">1</code> 可中止传输并设置 <strong><code><a href="curl.constants.php#constant.curle-aborted-by-callback">CURLE_ABORTED_BY_CALLBACK</a></code></strong> 错误。自 PHP 8.2.0 和 cURL 7.32.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-server-response-timeout">
    <strong><code><a href="curl.constants.php#constant.curlopt-server-response-timeout">CURLOPT_SERVER_RESPONSE_TIMEOUT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     cURL 将等待来自 <abbr title="File Transfer Protocol">FTP</abbr>、<abbr title="SSH/Secure File Transfer Protocol">SFTP</abbr>、<abbr title="Internet Message Access Protocol">IMAP</abbr>、<abbr>SCP</abbr>、<abbr title="Simple Mail Transfer Protocol">SMTP</abbr>
     或 <abbr title="Post Office Protocol version 3">POP3</abbr> 服务器响应的超时秒数。此选项取代了现有的 <strong><code><a href="curl.constants.php#constant.curlopt-ftp-response-timeout">CURLOPT_FTP_RESPONSE_TIMEOUT</a></code></strong> 选项，该选项在
     cURL 7.85.0 中已弃用。自 PHP 8.4.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-xoauth2-bearer">
    <strong><code><a href="curl.constants.php#constant.curlopt-xoauth2-bearer">CURLOPT_XOAUTH2_BEARER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     指定 OAuth 2.0 访问 token。设置为 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> 以禁用。默认为 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>。自 PHP 7.0.7 和 cURL 7.33.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-prereqfunction">
    <strong><code><a href="curl.constants.php#constant.curlopt-prereqfunction">CURLOPT_PREREQFUNCTION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     具有以下签名的 <span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span>，在建立连接之后但在发送请求负载（例如，HTTP 连接的
     GET/POST/DELETE 请求）之前调用，可用于根据源和目标 IP 地址和端口号中止或允许连接：
     <div class="methodsynopsis dc-description">
      <span class="methodname"><span class="replaceable">callback</span></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="class.curlhandle.php" class="type CurlHandle">CurlHandle</a></span> <code class="parameter">$curlHandle</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$destination_ip</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$local_ip</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$destination_port</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$local_port</code></span><br>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

     <dl>
      
       <dt><code class="parameter">curlHandle</code></dt>
       <dd>
        <span class="simpara">
         cURL 句柄。
        </span>
       </dd>
      
      
       <dt><code class="parameter">destination_ip</code></dt>
       <dd>
        <span class="simpara">
         使用此连接建立的远程服务器的主 IP。对于 <abbr title="File Transfer Protocol">FTP</abbr>，这是控制连接的 IP。IPv6 地址不带括号。
        </span>
       </dd>
      
      
       <dt><code class="parameter">local_ip</code></dt>
       <dd>
        <span class="simpara">
         此连接的原始 IP。IPv6 地址不带括号。
        </span>
       </dd>
      
      
       <dt><code class="parameter">destination_port</code></dt>
       <dd>
        <span class="simpara">
         使用此连接建立的远程服务器上的主端口号。对于 <abbr title="File Transfer Protocol">FTP</abbr>，这是控制连接的端口。根据协议的不同，这可能是
         <abbr title="Transmission Control Protocol">TCP</abbr> 或 <abbr title="User Datagram Protocol">UDP</abbr> 端口号。
        </span>
       </dd>
      
      
       <dt><code class="parameter">local_port</code></dt>
       <dd>
        <span class="simpara">
         此连接的发起端口号。根据协议的不同，这可能是 <abbr title="Transmission Control Protocol">TCP</abbr> 或 <abbr title="User Datagram Protocol">UDP</abbr> 端口号。
        </span>
       </dd>
      
     </dl>
     返回 <strong><code><a href="curl.constants.php#constant.curl-prereqfunc-ok">CURL_PREREQFUNC_OK</a></code></strong> 以允许请求，或返回 <strong><code><a href="curl.constants.php#constant.curl-prereqfunc-abort">CURL_PREREQFUNC_ABORT</a></code></strong>
     以中止传输。自 PHP 8.4.0 和 cURL 7.80.0 起可用。
    </p>
   </td>
  </tr>
  <tr>
   <td id="constant.curlopt-debugfunction">
    <strong><code><a href="curl.constants.php#constant.curlopt-debugfunction">CURLOPT_DEBUGFUNCTION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     自 PHP 8.4.0 起可用。此选项需要启用 <strong><code><a href="curl.constants.php#constant.curlopt-verbose">CURLOPT_VERBOSE</a></code></strong> 选项。<span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span>
     来替换标准 cURL 详细输出。此回调在请求的各个阶段使用详细调试信息进行调用。回调应与以下签名匹配：
     <div class="methodsynopsis dc-description">
      <span class="methodname"><span class="replaceable">callback</span></span>(<span class="methodparam"><span class="type"><a href="class.curlhandle.php" class="type CurlHandle">CurlHandle</a></span> <code class="parameter">$curlHandle</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$type</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$data</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

     <dl>
      
       <dt><code class="parameter">curlHandle</code></dt>
       <dd>
        <span class="simpara">
         cURL 句柄。
        </span>
       </dd>
      
      
       <dt><code class="parameter">type</code></dt>
       <dd>
        <span class="simpara">
         下列常量之一表示 <code class="parameter">data</code> 值的类型：
        </span>
        <table id="constant.curl-debugfunction.constants" class="doctable table">
             <tr>
              <th>常量</th>
              <th>描述</th>
             </tr>
         <tr>
          <td id="constant.curlinfo-text">
           <strong><code><a href="curl.constants.php#constant.curlinfo-text">CURLINFO_TEXT</a></code></strong>
           (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
          </td>
          <td>
           <span class="simpara">
            信息文本。
           </span>
          </td>
         </tr>
         <tr>
          <td id="constant.curlinfo-header-in">
           <strong><code><a href="curl.constants.php#constant.curlinfo-header-in">CURLINFO_HEADER_IN</a></code></strong>
           (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
          </td>
          <td>
           <span class="simpara">
            从对等方接受的 header（或者类似 header）值。
           </span>
          </td>
         </tr>
         <tr>
          <td id="constant.curlinfo-header-out-debug">
           <strong><code><a href="curl.constants.php#constant.curlinfo-header-out">CURLINFO_HEADER_OUT</a></code></strong>
           (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
          </td>
          <td>
           <span class="simpara">
            header（或者类 header） 数据发送给对等方。
           </span>
          </td>
         </tr>
         <tr>
          <td id="constant.curlinfo-data-in">
           <strong><code><a href="curl.constants.php#constant.curlinfo-data-in">CURLINFO_DATA_IN</a></code></strong>
           (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
          </td>
          <td>
           <span class="simpara">
            从对等方接收到的未处理协议数据。即使数据已编码或压缩，也不会向此回调提供解码或解压缩后的数据。
           </span>
          </td>
         </tr>
         <tr>
          <td id="constant.curlinfo-data-out">
           <strong><code><a href="curl.constants.php#constant.curlinfo-data-out">CURLINFO_DATA_OUT</a></code></strong>
           (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
          </td>
          <td>
           <span class="simpara">
            发送给对等方的协议数据。
           </span>
          </td>
         </tr>
         <tr>
          <td id="constant.curlinfo-ssl-data-in">
           <strong><code><a href="curl.constants.php#constant.curlinfo-ssl-data-in">CURLINFO_SSL_DATA_IN</a></code></strong>
           (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
          </td>
          <td>
           <span class="simpara">
            从对等方接收的 <abbr title="Secure Sockets Layer">SSL</abbr>/<abbr title="Transport Layer Security">TLS</abbr>（二进制）数据。
           </span>
          </td>
         </tr>
         <tr>
          <td id="constant.curlinfo-ssl-data-out">
           <strong><code><a href="curl.constants.php#constant.curlinfo-ssl-data-out">CURLINFO_SSL_DATA_OUT</a></code></strong>
           (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
          </td>
          <td>
           <span class="simpara">
            发送给对等方的 <abbr title="Secure Sockets Layer">SSL</abbr>/<abbr title="Transport Layer Security">TLS</abbr>（二进制）数据。
           </span>
          </td>
         </tr>
        </table>
       </dd>
      
      
       <dt><code class="parameter">data</code></dt>
       <dd>
        <span class="simpara">
         <code class="parameter">type</code> 参数表示的类型的详细调试数据。
        </span>
       </dd>
      
     </dl>
    </p>
   </td>
  </tr>
 </table>

 

<table id="constant.curl-share-setopt.constants" class="doctable table">
      <tr>
       <th>常量</th>
       <th>描述</th>
      </tr>
 <strong class="title"><span class="function"><a href="function.curl-share-setopt.php" class="function">curl_share_setopt()</a></span></strong>
 <tr>
  <td id="constant.curl-lock-data-connect">
   <strong><code><a href="curl.constants.php#constant.curl-lock-data-connect">CURL_LOCK_DATA_CONNECT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    共享/取消共享连接缓存。自 PHP 7.3.0 和 cURL 7.10.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curl-lock-data-cookie">
   <strong><code><a href="curl.constants.php#constant.curl-lock-data-cookie">CURL_LOCK_DATA_COOKIE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    共享/取消共享 cookie 数据。自 cURL 7.10.3 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curl-lock-data-dns">
   <strong><code><a href="curl.constants.php#constant.curl-lock-data-dns">CURL_LOCK_DATA_DNS</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    共享/取消共享 DNS 缓存。注意，当使用 cURL 多句柄时，默认情况下添加到同一个多句柄的所有句柄将共享 DNS 缓存。自 cURL 7.10.3 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curl-lock-data-psl">
   <strong><code><a href="curl.constants.php#constant.curl-lock-data-psl">CURL_LOCK_DATA_PSL</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    共享/取消共享公共后缀列表。自 PHP 7.3.0 和 cURL 7.61.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curl-lock-data-ssl-session">
   <strong><code><a href="curl.constants.php#constant.curl-lock-data-ssl-session">CURL_LOCK_DATA_SSL_SESSION</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    共享/取消共享 SSL 的 session ID，从而在重新连接到同一服务器时减少 SSL 握手所需的时间。请注意，默认情况下在同一句柄内会重用
    SSL 会话 ID。自 cURL 7.10.3 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlshopt-none">
   <strong><code><a href="curl.constants.php#constant.curlshopt-none">CURLSHOPT_NONE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.10.3 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlshopt-share">
   <strong><code><a href="curl.constants.php#constant.curlshopt-share">CURLSHOPT_SHARE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    指定应共享的数据类型。自 cURL 7.10.3 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlshopt-unshare">
   <strong><code><a href="curl.constants.php#constant.curlshopt-unshare">CURLSHOPT_UNSHARE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    指定不应共享的数据类型。自 cURL 7.10.3 起可用。
   </span>
  </td>
 </tr>
</table>

 

<table id="constant.curl-getinfo.constants" class="doctable table">
      <tr>
       <th>常量</th>
       <th>描述</th>
      </tr>
 <strong class="title"><span class="function"><a href="function.curl-getinfo.php" class="function">curl_getinfo()</a></span></strong>
 <tr>
  <td id="constant.curlinfo-appconnect-time">
   <strong><code><a href="curl.constants.php#constant.curlinfo-appconnect-time">CURLINFO_APPCONNECT_TIME</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    从建立 SSL/SSH 连接/握手起，到与远程主机完成连接所花费的秒数
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-appconnect-time-t">
   <strong><code><a href="curl.constants.php#constant.curlinfo-appconnect-time-t">CURLINFO_APPCONNECT_TIME_T</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    从建立 SSL/SSH 连接/握手起，到与远程主机完成连接所花费的微秒数。自 PHP 7.3.0 和 cURL 7.61.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-cainfo">
   <strong><code><a href="curl.constants.php#constant.curlinfo-cainfo">CURLINFO_CAINFO</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    默认内置 CA 证书位置。自 PHP 8.3.0 和 cURL 7.84.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-capath">
   <strong><code><a href="curl.constants.php#constant.curlinfo-capath">CURLINFO_CAPATH</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    默认内置 CA 证书路径。自 PHP 8.3.0 和 cURL 7.84.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-certinfo">
   <strong><code><a href="curl.constants.php#constant.curlinfo-certinfo">CURLINFO_CERTINFO</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    TLS 证书链
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-condition-unmet">
   <strong><code><a href="curl.constants.php#constant.curlinfo-condition-unmet">CURLINFO_CONDITION_UNMET</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    不满足时间条件的信息
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-connect-time">
   <strong><code><a href="curl.constants.php#constant.curlinfo-connect-time">CURLINFO_CONNECT_TIME</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    建立连接所花费的秒数
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-connect-time-t">
   <strong><code><a href="curl.constants.php#constant.curlinfo-connect-time-t">CURLINFO_CONNECT_TIME_T</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    从开始到完成连接远程主机（或代理）所花费的总微秒数。自 PHP 7.3.0 和 cURL 7.61.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-content-length-download">
   <strong><code><a href="curl.constants.php#constant.curlinfo-content-length-download">CURLINFO_CONTENT_LENGTH_DOWNLOAD</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    从 &quot;Content-Length:&quot; 字段读取的下载内容长度 (单位：字节)
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-content-length-download-t">
   <strong><code><a href="curl.constants.php#constant.curlinfo-content-length-download-t">CURLINFO_CONTENT_LENGTH_DOWNLOAD_T</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    下载的 content-length。该值从 &quot;Content-Length:&quot; 字段读取。如果无法得知大小，则为 -1。自 PHP 7.3.0 和 cURL 7.55.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-content-length-upload">
   <strong><code><a href="curl.constants.php#constant.curlinfo-content-length-upload">CURLINFO_CONTENT_LENGTH_UPLOAD</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    指定上传大小
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-content-length-upload-t">
   <strong><code><a href="curl.constants.php#constant.curlinfo-content-length-upload-t">CURLINFO_CONTENT_LENGTH_UPLOAD_T</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    指定上传大小。如果大小未知，则为 -1。自 PHP 7.3.0 和 cURL 7.55.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-content-type">
   <strong><code><a href="curl.constants.php#constant.curlinfo-content-type">CURLINFO_CONTENT_TYPE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    已请求的文档的 <code class="literal">Content-Type</code>。NULL 表示服务器未发送有效的 <code class="literal">Content-Type</code> header。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-cookielist">
   <strong><code><a href="curl.constants.php#constant.curlinfo-cookielist">CURLINFO_COOKIELIST</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    所以已知的 cookie
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-effective-method">
   <strong><code><a href="curl.constants.php#constant.curlinfo-effective-method">CURLINFO_EFFECTIVE_METHOD</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    获取最后使用的 HTTP 方法。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-effective-url">
   <strong><code><a href="curl.constants.php#constant.curlinfo-effective-url">CURLINFO_EFFECTIVE_URL</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
     最后有效的 URL
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-filetime">
   <strong><code><a href="curl.constants.php#constant.curlinfo-filetime">CURLINFO_FILETIME</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    启用 <strong><code><a href="curl.constants.php#constant.curlopt-filetime">CURLOPT_FILETIME</a></code></strong> 时，检索文档的远程时间；如果返回 -1，则表示文档的时间未知。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-filetime-t">
   <strong><code><a href="curl.constants.php#constant.curlinfo-filetime-t">CURLINFO_FILETIME_T</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    检索文档的远程时间 (Unix 时间戳)，它是 <strong><code><a href="curl.constants.php#constant.curlinfo-filetime">CURLINFO_FILETIME</a></code></strong> 的替代方案，允许
    32 位长整型的系统提取超出 32 位时间戳范围的日期。自 PHP 7.3.0 和 cURL 7.59.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-ftp-entry-path">
   <strong><code><a href="curl.constants.php#constant.curlinfo-ftp-entry-path">CURLINFO_FTP_ENTRY_PATH</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    FTP 服务器中的条目路径
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-header-out">
   <strong><code><a href="curl.constants.php#constant.curlinfo-header-out">CURLINFO_HEADER_OUT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    已发送的请求字符串。如果要生效，需要调用 <span class="function"><a href="function.curl-setopt.php" class="function">curl_setopt()</a></span> 函数将 <strong><code><a href="curl.constants.php#constant.curlinfo-header-out">CURLINFO_HEADER_OUT</a></code></strong> 选项添加到句柄中
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-header-size">
   <strong><code><a href="curl.constants.php#constant.curlinfo-header-size">CURLINFO_HEADER_SIZE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    所有检索到的 header 总大小
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-httpauth-avail">
   <strong><code><a href="curl.constants.php#constant.curlinfo-httpauth-avail">CURLINFO_HTTPAUTH_AVAIL</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    之前的响应中，用位掩码表示对应可用的身份验证方法
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-http-code">
   <strong><code><a href="curl.constants.php#constant.curlinfo-http-code">CURLINFO_HTTP_CODE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    最后的响应码。自 cURL 7.10.8 起，这是 <strong><code><a href="curl.constants.php#constant.curlinfo-response-code">CURLINFO_RESPONSE_CODE</a></code></strong> 的遗留别名。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-http-connectcode">
   <strong><code><a href="curl.constants.php#constant.curlinfo-http-connectcode">CURLINFO_HTTP_CONNECTCODE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    CONNECT 响应码
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-http-version">
   <strong><code><a href="curl.constants.php#constant.curlinfo-http-version">CURLINFO_HTTP_VERSION</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    上次 HTTP 连接中使用的版本。返回值将是定义的 <strong><code><a href="curl.constants.php#constant.curl-http-version-1-0">CURL_HTTP_VERSION_<span class="replaceable">*</span></a></code></strong>
    常量中的一个，或者如果无法确定版本，则返回 0。自 PHP 7.3.0 和 cURL 7.50.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-lastone">
   <strong><code><a href="curl.constants.php#constant.curlinfo-lastone">CURLINFO_LASTONE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    <code class="literal">libcurl</code> 中底层 <code class="literal">CURLINFO</code> 枚举中的最后一个枚举值。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-local-ip">
   <strong><code><a href="curl.constants.php#constant.curlinfo-local-ip">CURLINFO_LOCAL_IP</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    最近连接的本地 (源) IP 地址
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-local-port">
   <strong><code><a href="curl.constants.php#constant.curlinfo-local-port">CURLINFO_LOCAL_PORT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    最近连接的本地 (源) 端口
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-namelookup-time">
   <strong><code><a href="curl.constants.php#constant.curlinfo-namelookup-time">CURLINFO_NAMELOOKUP_TIME</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    域名解析完成所需秒数
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-namelookup-time-t">
   <strong><code><a href="curl.constants.php#constant.curlinfo-namelookup-time-t">CURLINFO_NAMELOOKUP_TIME_T</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    域名解析完成所需的微秒数。自 PHP 7.3.0 和 cURL 7.61.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-num-connects">
   <strong><code><a href="curl.constants.php#constant.curlinfo-num-connects">CURLINFO_NUM_CONNECTS</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    为完成上次传输，cURL 创建的连接数
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-os-errno">
   <strong><code><a href="curl.constants.php#constant.curlinfo-os-errno">CURLINFO_OS_ERRNO</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    连接失败的错误码 (Errno)。该数字与操作系统和系统相关。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-pretransfer-time">
   <strong><code><a href="curl.constants.php#constant.curlinfo-pretransfer-time">CURLINFO_PRETRANSFER_TIME</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    从开始到文件传输开始之前的秒数
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-pretransfer-time-t">
   <strong><code><a href="curl.constants.php#constant.curlinfo-pretransfer-time-t">CURLINFO_PRETRANSFER_TIME_T</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    从开始到文件传输即将开始为止所花费的微秒数。自 PHP 7.3.0 和 cURL 7.61.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-primary-ip">
   <strong><code><a href="curl.constants.php#constant.curlinfo-primary-ip">CURLINFO_PRIMARY_IP</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    最近连接的目标 IP 地址
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-primary-port">
   <strong><code><a href="curl.constants.php#constant.curlinfo-primary-port">CURLINFO_PRIMARY_PORT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    最近连接的目标端口
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-private">
   <strong><code><a href="curl.constants.php#constant.curlinfo-private">CURLINFO_PRIVATE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    与 CURL 句柄相关的私有数据，先前使用 <span class="function"><a href="function.curl-setopt.php" class="function">curl_setopt()</a></span> 的
    <strong><code><a href="curl.constants.php#constant.curlopt-private">CURLOPT_PRIVATE</a></code></strong> 选项设置
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-protocol">
   <strong><code><a href="curl.constants.php#constant.curlinfo-protocol">CURLINFO_PROTOCOL</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    上次 HTTP 连接使用的协议。返回值将是 <strong><code><a href="curl.constants.php#constant.curlproto-all">CURLPROTO_<span class="replaceable">*</span></a></code></strong>
    值之一。自 PHP 7.3.0 和 cURL 7.52.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-proxyauth-avail">
   <strong><code><a href="curl.constants.php#constant.curlinfo-proxyauth-avail">CURLINFO_PROXYAUTH_AVAIL</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    之前的响应中，用位掩码表示对应可用的代理身份验证方法
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-proxy-error">
   <strong><code><a href="curl.constants.php#constant.curlinfo-proxy-error">CURLINFO_PROXY_ERROR</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    详细的 (SOCKS) 代理错误代码。当最近传输返回 <strong><code><a href="curl.constants.php#constant.curle-proxy">CURLE_PROXY</a></code></strong> 错误时，该代码会提供更多信息。返回值将是
    <strong><code><a href="curl.constants.php#constant.curlpx-bad-address-type">CURLPX_<span class="replaceable">*</span></a></code></strong> 值之一。如果没有可用的响应代码，则错误代码将是
    <strong><code><a href="curl.constants.php#constant.curlpx-ok">CURLPX_OK</a></code></strong>。自 PHP 8.2.0 和 cURL 7.73.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-proxy-ssl-verifyresult">
   <strong><code><a href="curl.constants.php#constant.curlinfo-proxy-ssl-verifyresult">CURLINFO_PROXY_SSL_VERIFYRESULT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    请求（使用 <strong><code><a href="curl.constants.php#constant.curlopt-proxy-ssl-verifypeer">CURLOPT_PROXY_SSL_VERIFYPEER</a></code></strong> 选项）时，证书的验证结果。仅 HTTPS 代理有效。自 PHP 7.3.0 和 cURL 7.52.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-redirect-count">
   <strong><code><a href="curl.constants.php#constant.curlinfo-redirect-count">CURLINFO_REDIRECT_COUNT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    启用 <strong><code><a href="curl.constants.php#constant.curlopt-followlocation">CURLOPT_FOLLOWLOCATION</a></code></strong> 时的重定向次数。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-redirect-time">
   <strong><code><a href="curl.constants.php#constant.curlinfo-redirect-time">CURLINFO_REDIRECT_TIME</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    启用 <strong><code><a href="curl.constants.php#constant.curlopt-followlocation">CURLOPT_FOLLOWLOCATION</a></code></strong> 选项后，最终事务开始前所有重定向步骤花费的秒数。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-redirect-time-t">
   <strong><code><a href="curl.constants.php#constant.curlinfo-redirect-time-t">CURLINFO_REDIRECT_TIME_T</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    最终事务开始前所有重定向步骤（包含域名解析、连接、传输前预处理、传输）花费的秒数。自 PHP 7.3.0 和 cURL 7.61.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-redirect-url">
   <strong><code><a href="curl.constants.php#constant.curlinfo-redirect-url">CURLINFO_REDIRECT_URL</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    禁用 <strong><code><a href="curl.constants.php#constant.curlopt-followlocation">CURLOPT_FOLLOWLOCATION</a></code></strong> 选项：在上一次事务中找到的重定向 URL，接下来应手动请求。启用
    <strong><code><a href="curl.constants.php#constant.curlopt-followlocation">CURLOPT_FOLLOWLOCATION</a></code></strong> 选项：此为空。此情况下的重定向 URL 可在
    <strong><code><a href="curl.constants.php#constant.curlinfo-effective-url">CURLINFO_EFFECTIVE_URL</a></code></strong> 中找到。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-referer">
   <strong><code><a href="curl.constants.php#constant.curlinfo-referer">CURLINFO_REFERER</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    <code class="literal">Referer</code> header。自 PHP 8.2.0 和 cURL 7.76.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-request-size">
   <strong><code><a href="curl.constants.php#constant.curlinfo-request-size">CURLINFO_REQUEST_SIZE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    发出的请求总大小，目前仅适用于 HTTP 请求
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-response-code">
   <strong><code><a href="curl.constants.php#constant.curlinfo-response-code">CURLINFO_RESPONSE_CODE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    最后一个响应代码。自 cURL 7.10.8 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-retry-after">
   <strong><code><a href="curl.constants.php#constant.curlinfo-retry-after">CURLINFO_RETRY_AFTER</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    <code class="literal">Retry-After</code> header 中的信息，如果没有有效的 header 则为零。自 PHP 8.2.0 和 cURL 7.66.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-rtsp-client-cseq">
   <strong><code><a href="curl.constants.php#constant.curlinfo-rtsp-client-cseq">CURLINFO_RTSP_CLIENT_CSEQ</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    下一个 RTSP 客户端 CSeq
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-rtsp-cseq-recv">
   <strong><code><a href="curl.constants.php#constant.curlinfo-rtsp-cseq-recv">CURLINFO_RTSP_CSEQ_RECV</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    最近检索的 CSeq
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-rtsp-server-cseq">
   <strong><code><a href="curl.constants.php#constant.curlinfo-rtsp-server-cseq">CURLINFO_RTSP_SERVER_CSEQ</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    下一个 RTSP 服务器 CSeq
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-rtsp-session-id">
   <strong><code><a href="curl.constants.php#constant.curlinfo-rtsp-session-id">CURLINFO_RTSP_SESSION_ID</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    RTSP session ID
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-scheme">
   <strong><code><a href="curl.constants.php#constant.curlinfo-scheme">CURLINFO_SCHEME</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    用于最近连接的 URL scheme。自 PHP 7.3.0 和 cURL 7.52.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-size-download">
   <strong><code><a href="curl.constants.php#constant.curlinfo-size-download">CURLINFO_SIZE_DOWNLOAD</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    下载的总字节数
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-size-download-t">
   <strong><code><a href="curl.constants.php#constant.curlinfo-size-download-t">CURLINFO_SIZE_DOWNLOAD_T</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    已下载的总字节数。该数字仅适用于最近一次传输，每次新传输都会重新设置。自 PHP 7.3.0 和 cURL 7.50.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-size-upload">
   <strong><code><a href="curl.constants.php#constant.curlinfo-size-upload">CURLINFO_SIZE_UPLOAD</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    上传的总字节数
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-size-upload-t">
   <strong><code><a href="curl.constants.php#constant.curlinfo-size-upload-t">CURLINFO_SIZE_UPLOAD_T</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    上传的总字节数。自 PHP 7.3.0 和 cURL 7.50.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-speed-download">
   <strong><code><a href="curl.constants.php#constant.curlinfo-speed-download">CURLINFO_SPEED_DOWNLOAD</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    平均下载速度
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-speed-download-t">
   <strong><code><a href="curl.constants.php#constant.curlinfo-speed-download-t">CURLINFO_SPEED_DOWNLOAD_T</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    curl 测量的完整下载的平均下载速度（以字节/秒为单位）。自 PHP 7.3.0 和 cURL 7.50.0 开始可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-speed-upload">
   <strong><code><a href="curl.constants.php#constant.curlinfo-speed-upload">CURLINFO_SPEED_UPLOAD</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    平均上传速度
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-speed-upload-t">
   <strong><code><a href="curl.constants.php#constant.curlinfo-speed-upload-t">CURLINFO_SPEED_UPLOAD_T</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    curl 测量的完整上传过程的平均上传速度（以字节/秒为单位）。自 PHP 7.3.0 和 cURL 7.50.0 开始可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-ssl-engines">
   <strong><code><a href="curl.constants.php#constant.curlinfo-ssl-engines">CURLINFO_SSL_ENGINES</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    支持 OpenSSL 加密引擎
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-ssl-verifyresult">
   <strong><code><a href="curl.constants.php#constant.curlinfo-ssl-verifyresult">CURLINFO_SSL_VERIFYRESULT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    通过设置 <strong><code><a href="curl.constants.php#constant.curlopt-ssl-verifypeer">CURLOPT_SSL_VERIFYPEER</a></code></strong> 请求 SSL 认证验证的结果
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-starttransfer-time">
   <strong><code><a href="curl.constants.php#constant.curlinfo-starttransfer-time">CURLINFO_STARTTRANSFER_TIME</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    第一个字节即将被传输的时间（以秒为单位）
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-starttransfer-time-t">
   <strong><code><a href="curl.constants.php#constant.curlinfo-starttransfer-time-t">CURLINFO_STARTTRANSFER_TIME_T</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    从开始到接收到第一个字节时所花费的时间（以微秒为单位）。自 PHP 7.3.0 和 cURL 7.61.0 开始可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-total-time">
   <strong><code><a href="curl.constants.php#constant.curlinfo-total-time">CURLINFO_TOTAL_TIME</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    上次传输的总事务时间（秒）
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-total-time-t">
   <strong><code><a href="curl.constants.php#constant.curlinfo-total-time-t">CURLINFO_TOTAL_TIME_T</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    上次传输的总时间（以微秒为单位），包括名称解析、TCP 连接等。自 PHP 7.3.0 和 cURL 7.61.0 开始可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlinfo-posttransfer-time-t">
   <strong><code><a href="curl.constants.php#constant.curlinfo-posttransfer-time-t">CURLINFO_POSTTRANSFER_TIME_T</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    从开始到发送最后一个字节所花费的微秒数。自 PHP 8.4.0 和 cURL 8.10.0 起可用
   </span>
  </td>
 </tr>
</table>

 

<table id="constant.curl-multi-setopt.constants" class="doctable table">
      <tr>
       <th>常量</th>
       <th>描述</th>
      </tr>
 <strong class="title"><span class="function"><a href="function.curl-multi-setopt.php" class="function">curl_multi_setopt()</a></span></strong>
  <tr>
   <td id="constant.curlmopt-chunk-length-penalty-size">
    <strong><code><a href="curl.constants.php#constant.curlmopt-chunk-length-penalty-size">CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     指定用于管道处理的块长度阈值（以字节为单位）。自 PHP 7.0.7 和 cURL 7.30.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlmopt-content-length-penalty-size">
    <strong><code><a href="curl.constants.php#constant.curlmopt-content-length-penalty-size">CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     指定用于管道惩罚（pipelining penalty）的长度阈值（以字节为单位）。自 PHP 7.0.7 和 cURL 7.30.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlmopt-maxconnects">
    <strong><code><a href="curl.constants.php#constant.curlmopt-maxconnects">CURLMOPT_MAXCONNECTS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     指定 libcurl 可以缓存的最大同时打开的连接数。默认情况下，这个大小会自动扩展到通过 <span class="function"><a href="function.curl-multi-add-handle.php" class="function">curl_multi_add_handle()</a></span>
     添加的句柄数的四倍。当缓存已满时，cURL 会关闭缓存中最旧的一个连接，以防止打开的连接数继续增加。自 cURL 7.16.3 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlmopt-max-concurrent-streams">
    <strong><code><a href="curl.constants.php#constant.curlmopt-max-concurrent-streams">CURLMOPT_MAX_CONCURRENT_STREAMS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     指定 cURL 在使用 HTTP/2 连接中应支持的最大并发流数量。有效值范围是从 <code class="literal">1</code> 到
     <code class="literal">2147483647</code>（<code class="literal">2^31 - 1</code>）。这里设置的值将根据其他系统资源属性来确定是否执行。默认值是
     <code class="literal">100</code>。自 PHP 8.2.0 和 cURL 7.67.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlmopt-max-host-connections">
    <strong><code><a href="curl.constants.php#constant.curlmopt-max-host-connections">CURLMOPT_MAX_HOST_CONNECTIONS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     指定单个主机的最大连接数。自 PHP 7.0.7 和 cURL 7.30.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlmopt-max-pipeline-length">
    <strong><code><a href="curl.constants.php#constant.curlmopt-max-pipeline-length">CURLMOPT_MAX_PIPELINE_LENGTH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     指定管道中的最大请求数。自 PHP 7.0.7 和 cURL 7.30.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlmopt-max-total-connections">
    <strong><code><a href="curl.constants.php#constant.curlmopt-max-total-connections">CURLMOPT_MAX_TOTAL_CONNECTIONS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     指定同时打开的最大连接数。自 PHP 7.0.7 和 cURL 7.30.0 起可用
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlmopt-pipelining">
    <strong><code><a href="curl.constants.php#constant.curlmopt-pipelining">CURLMOPT_PIPELINING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <span class="simpara">
     传递 1 启用或传递 0 禁用。在多句柄上启用管道将使其尝试对使用此句柄的传输尽可能执行 HTTP
     管道操作。这意味着如果添加的第二个请求可以使用已有连接，则第二个请求将在同一连接上使用“管道”。自
     cURL 7.43.0 起，该值是位掩码，传递 2 将尝试在现有的 HTTP/2 连接上多路复用新传输。传递
     3 指示 cURL 请求彼此独立的管道和多路复用。自 cURL 7.62.0 起，设置管道 bit 没有效果。除了整数文字，还可以使用
     CURLPIPE_* 常量。自 cURL 7.16.0 起可用。
    </span>
   </td>
  </tr>
  <tr>
   <td id="constant.curlmopt-pushfunction">
    <strong><code><a href="curl.constants.php#constant.curlmopt-pushfunction">CURLMOPT_PUSHFUNCTION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </td>
   <td>
    <p class="para">
     传递 <span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span> 以注册处理服务器推送且应具有以下签名：
     <div class="methodsynopsis dc-description">
      <span class="methodname"><span class="replaceable">pushfunction</span></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$parent_ch</code></span>, <span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$pushed_ch</code></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$headers</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

     <dl>
      
       <dt><code class="parameter">parent_ch</code></dt>
       <dd>
        <span class="simpara">
         父级 cURL 句柄（客户端发出的请求）。
        </span>
       </dd>
      
      
       <dt><code class="parameter">pushed_ch</code></dt>
       <dd>
        <span class="simpara">
         推送请求的新 cURL 句柄。
        </span>
       </dd>
      
      
       <dt><code class="parameter">headers</code></dt>
       <dd>
        <span class="simpara">
         推送 promise header。
        </span>
       </dd>
      
     </dl>
     推送函数如果可以处理推送应该返回 <strong><code><a href="curl.constants.php#constant.curl-push-ok">CURL_PUSH_OK</a></code></strong>，或者返回
     <strong><code><a href="curl.constants.php#constant.curl-push-deny">CURL_PUSH_DENY</a></code></strong> 拒绝。自 PHP 7.1.0 和 cURL 7.44.0 起可用。
    </p>
   </td>
  </tr>
</table>

 

<table id="constant.curlproto.constants" class="doctable table">
      <tr>
       <th>常量</th>
       <th>描述</th>
      </tr>
 <strong class="title">cURL 协议常量</strong>
 <tr>
  <td id="constant.curlproto-all">
   <strong><code><a href="curl.constants.php#constant.curlproto-all">CURLPROTO_ALL</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.19.4 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-dict">
   <strong><code><a href="curl.constants.php#constant.curlproto-dict">CURLPROTO_DICT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.19.4 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-file">
   <strong><code><a href="curl.constants.php#constant.curlproto-file">CURLPROTO_FILE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.19.4 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-ftp">
   <strong><code><a href="curl.constants.php#constant.curlproto-ftp">CURLPROTO_FTP</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.19.4 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-ftps">
   <strong><code><a href="curl.constants.php#constant.curlproto-ftps">CURLPROTO_FTPS</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.19.4 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-gopher">
   <strong><code><a href="curl.constants.php#constant.curlproto-gopher">CURLPROTO_GOPHER</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.21.2 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-http">
   <strong><code><a href="curl.constants.php#constant.curlproto-http">CURLPROTO_HTTP</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.19.4 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-https">
   <strong><code><a href="curl.constants.php#constant.curlproto-https">CURLPROTO_HTTPS</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.19.4 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-imap">
   <strong><code><a href="curl.constants.php#constant.curlproto-imap">CURLPROTO_IMAP</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.20.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-imaps">
   <strong><code><a href="curl.constants.php#constant.curlproto-imaps">CURLPROTO_IMAPS</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.20.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-ldap">
   <strong><code><a href="curl.constants.php#constant.curlproto-ldap">CURLPROTO_LDAP</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.19.4 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-ldaps">
   <strong><code><a href="curl.constants.php#constant.curlproto-ldaps">CURLPROTO_LDAPS</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.19.4 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-mqtt">
   <strong><code><a href="curl.constants.php#constant.curlproto-mqtt">CURLPROTO_MQTT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 PHP 8.2.0 和 cURL 7.71.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-pop3">
   <strong><code><a href="curl.constants.php#constant.curlproto-pop3">CURLPROTO_POP3</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.20.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-pop3s">
   <strong><code><a href="curl.constants.php#constant.curlproto-pop3s">CURLPROTO_POP3S</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.20.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-rtmp">
   <strong><code><a href="curl.constants.php#constant.curlproto-rtmp">CURLPROTO_RTMP</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.21.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-rtmpe">
   <strong><code><a href="curl.constants.php#constant.curlproto-rtmpe">CURLPROTO_RTMPE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.21.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-rtmps">
   <strong><code><a href="curl.constants.php#constant.curlproto-rtmps">CURLPROTO_RTMPS</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.21.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-rtmpt">
   <strong><code><a href="curl.constants.php#constant.curlproto-rtmpt">CURLPROTO_RTMPT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.21.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-rtmpte">
   <strong><code><a href="curl.constants.php#constant.curlproto-rtmpte">CURLPROTO_RTMPTE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.21.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-rtmpts">
   <strong><code><a href="curl.constants.php#constant.curlproto-rtmpts">CURLPROTO_RTMPTS</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.21.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-rtsp">
   <strong><code><a href="curl.constants.php#constant.curlproto-rtsp">CURLPROTO_RTSP</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.20.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-scp">
   <strong><code><a href="curl.constants.php#constant.curlproto-scp">CURLPROTO_SCP</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.19.4 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-sftp">
   <strong><code><a href="curl.constants.php#constant.curlproto-sftp">CURLPROTO_SFTP</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.19.4 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-smb">
   <strong><code><a href="curl.constants.php#constant.curlproto-smb">CURLPROTO_SMB</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 PHP 7.0.7 和 cURL 7.40.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-smbs">
   <strong><code><a href="curl.constants.php#constant.curlproto-smbs">CURLPROTO_SMBS</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 PHP 7.0.7 和 cURL 7.40.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-smtp">
   <strong><code><a href="curl.constants.php#constant.curlproto-smtp">CURLPROTO_SMTP</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.20.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-smtps">
   <strong><code><a href="curl.constants.php#constant.curlproto-smtps">CURLPROTO_SMTPS</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.20.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-telnet">
   <strong><code><a href="curl.constants.php#constant.curlproto-telnet">CURLPROTO_TELNET</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.19.4 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlproto-tftp">
   <strong><code><a href="curl.constants.php#constant.curlproto-tftp">CURLPROTO_TFTP</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    自 cURL 7.19.4 起可用。
   </span>
  </td>
 </tr>
</table>

 

<table id="constant.curl-error.constants" class="doctable table">
      <tr>
       <th>常量</th>
       <th>描述</th>
      </tr>
 <strong class="title">cURL 错误常量</strong>
 <tr>
  <td id="constant.curle-aborted-by-callback">
   <strong><code><a href="curl.constants.php#constant.curle-aborted-by-callback">CURLE_ABORTED_BY_CALLBACK</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    回调已中止。回调向 libcurl 返回“abort”。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-bad-calling-order">
   <strong><code><a href="curl.constants.php#constant.curle-bad-calling-order">CURLE_BAD_CALLING_ORDER</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-bad-content-encoding">
   <strong><code><a href="curl.constants.php#constant.curle-bad-content-encoding">CURLE_BAD_CONTENT_ENCODING</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    无法识别传输编码。
   </span>
  </td>
 </tr>
  <tr>
  <td id="constant.curle-bad-download-resume">
   <strong><code><a href="curl.constants.php#constant.curle-bad-download-resume">CURLE_BAD_DOWNLOAD_RESUME</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    由于指定的偏移量超出了文件边界，因此无法恢复下载。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-bad-function-argument">
   <strong><code><a href="curl.constants.php#constant.curle-bad-function-argument">CURLE_BAD_FUNCTION_ARGUMENT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    调用的函数带有错误的参数。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-bad-password-entered">
   <strong><code><a href="curl.constants.php#constant.curle-bad-password-entered">CURLE_BAD_PASSWORD_ENTERED</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-couldnt-connect">
   <strong><code><a href="curl.constants.php#constant.curle-couldnt-connect">CURLE_COULDNT_CONNECT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    无法连接到主机或代理。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-couldnt-resolve-host">
   <strong><code><a href="curl.constants.php#constant.curle-couldnt-resolve-host">CURLE_COULDNT_RESOLVE_HOST</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    无法解析主机。指定的远程主机无法解析。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-couldnt-resolve-proxy">
   <strong><code><a href="curl.constants.php#constant.curle-couldnt-resolve-proxy">CURLE_COULDNT_RESOLVE_PROXY</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    无法解析代理。无法解析给定的代理主机。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-failed-init">
   <strong><code><a href="curl.constants.php#constant.curle-failed-init">CURLE_FAILED_INIT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    初始化代码失败。这可能是内部错误或程序，或者是资源问题，导致在初始化时无法完成一些基本操作。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-filesize-exceeded">
   <strong><code><a href="curl.constants.php#constant.curle-filesize-exceeded">CURLE_FILESIZE_EXCEEDED</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    超出最大文件大小。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-file-couldnt-read-file">
   <strong><code><a href="curl.constants.php#constant.curle-file-couldnt-read-file">CURLE_FILE_COULDNT_READ_FILE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    无法打开 FILE:// 指定的文件。很可能是因为文件路径未识别现有文件或由于缺乏适当的文件权限。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-access-denied">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-access-denied">CURLE_FTP_ACCESS_DENIED</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-bad-download-resume">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-bad-download-resume">CURLE_FTP_BAD_DOWNLOAD_RESUME</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-cant-get-host">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-cant-get-host">CURLE_FTP_CANT_GET_HOST</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    用于查找新连接的主机发生内部故障。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-cant-reconnect">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-cant-reconnect">CURLE_FTP_CANT_RECONNECT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-couldnt-get-size">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-couldnt-get-size">CURLE_FTP_COULDNT_GET_SIZE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-couldnt-retr-file">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-couldnt-retr-file">CURLE_FTP_COULDNT_RETR_FILE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    这要么是对“RETR”命令的意外回复，要么是零字节传输完成。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-couldnt-set-ascii">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-couldnt-set-ascii">CURLE_FTP_COULDNT_SET_ASCII</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-couldnt-set-binary">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-couldnt-set-binary">CURLE_FTP_COULDNT_SET_BINARY</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-couldnt-stor-file">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-couldnt-stor-file">CURLE_FTP_COULDNT_STOR_FILE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-couldnt-use-rest">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-couldnt-use-rest">CURLE_FTP_COULDNT_USE_REST</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    FTP REST 命令返回错误。如果服务器正常，这种情况绝不会发生。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-partial-file">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-partial-file">CURLE_FTP_PARTIAL_FILE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-port-failed">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-port-failed">CURLE_FTP_PORT_FAILED</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    FTP PORT 命令返回错误。这种情况大多发生在为 libcurl 指定的地址没有足够好。参阅 <strong><code><a href="curl.constants.php#constant.curlopt-ftpport">CURLOPT_FTPPORT</a></code></strong>。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-quote-error">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-quote-error">CURLE_FTP_QUOTE_ERROR</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-ssl-failed">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-ssl-failed">CURLE_FTP_SSL_FAILED</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-user-password-incorrect">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-user-password-incorrect">CURLE_FTP_USER_PASSWORD_INCORRECT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-weird-227-format">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-weird-227-format">CURLE_FTP_WEIRD_227_FORMAT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    FTP 服务器返回 227-line 作为对 PASV 命令的响应。如果 libcurl 无法解析该行，则会传回此返回代码。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-weird-pass-reply">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-weird-pass-reply">CURLE_FTP_WEIRD_PASS_REPLY</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    将 FTP 密码发送到服务器后，libcurl 需要收到正确的回复。此错误代码表示返回了意外代码。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-weird-pasv-reply">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-weird-pasv-reply">CURLE_FTP_WEIRD_PASV_REPLY</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    libcurl 无法从服务器获取合理的结果作为对 PASV 或 EPSV 命令的响应。服务器存在缺陷。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-weird-server-reply">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-weird-server-reply">CURLE_FTP_WEIRD_SERVER_REPLY</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    服务器发送了 libcurl 无法解析的数据。自 cURL 7.51.0 起，此错误代码为 <strong><code><a href="curl.constants.php#constant.curle-weird-server-reply">CURLE_WEIRD_SERVER_REPLY</a></code></strong>。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-weird-user-reply">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-weird-user-reply">CURLE_FTP_WEIRD_USER_REPLY</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ftp-write-error">
   <strong><code><a href="curl.constants.php#constant.curle-ftp-write-error">CURLE_FTP_WRITE_ERROR</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-function-not-found">
   <strong><code><a href="curl.constants.php#constant.curle-function-not-found">CURLE_FUNCTION_NOT_FOUND</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    未找到函数。未找到所需的 zlib 函数。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-got-nothing">
   <strong><code><a href="curl.constants.php#constant.curle-got-nothing">CURLE_GOT_NOTHING</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    服务器没有返回任何内容，在这种情况下，没有得到任何内容视为错误。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-http-not-found">
   <strong><code><a href="curl.constants.php#constant.curle-http-not-found">CURLE_HTTP_NOT_FOUND</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-http-port-failed">
   <strong><code><a href="curl.constants.php#constant.curle-http-port-failed">CURLE_HTTP_PORT_FAILED</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-http-post-error">
   <strong><code><a href="curl.constants.php#constant.curle-http-post-error">CURLE_HTTP_POST_ERROR</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    这是一个奇怪的错误，主要由于内部混乱而发生。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-http-range-error">
   <strong><code><a href="curl.constants.php#constant.curle-http-range-error">CURLE_HTTP_RANGE_ERROR</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-http-returned-error">
   <strong><code><a href="curl.constants.php#constant.curle-http-returned-error">CURLE_HTTP_RETURNED_ERROR</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    如果 <strong><code><a href="curl.constants.php#constant.curlopt-failonerror">CURLOPT_FAILONERROR</a></code></strong> 设置为 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> 并且 HTTP 服务器返回大于或等于 400 的错误代码，则返回此值。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ldap-cannot-bind">
   <strong><code><a href="curl.constants.php#constant.curle-ldap-cannot-bind">CURLE_LDAP_CANNOT_BIND</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    LDAP 无法绑定。LDAP 绑定操作失败。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ldap-invalid-url">
   <strong><code><a href="curl.constants.php#constant.curle-ldap-invalid-url">CURLE_LDAP_INVALID_URL</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ldap-search-failed">
   <strong><code><a href="curl.constants.php#constant.curle-ldap-search-failed">CURLE_LDAP_SEARCH_FAILED</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    LDAP 搜索失败。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-library-not-found">
   <strong><code><a href="curl.constants.php#constant.curle-library-not-found">CURLE_LIBRARY_NOT_FOUND</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-malformat-user">
   <strong><code><a href="curl.constants.php#constant.curle-malformat-user">CURLE_MALFORMAT_USER</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-obsolete">
   <strong><code><a href="curl.constants.php#constant.curle-obsolete">CURLE_OBSOLETE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ok">
   <strong><code><a href="curl.constants.php#constant.curle-ok">CURLE_OK</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    一切顺利。一切照常进行。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-operation-timedout">
   <strong><code><a href="curl.constants.php#constant.curle-operation-timedout">CURLE_OPERATION_TIMEDOUT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    操作超时。根据条件已达到指定的超时时限。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-operation-timeouted">
   <strong><code><a href="curl.constants.php#constant.curle-operation-timeouted">CURLE_OPERATION_TIMEOUTED</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-out-of-memory">
   <strong><code><a href="curl.constants.php#constant.curle-out-of-memory">CURLE_OUT_OF_MEMORY</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    内存分配请求失败。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-partial-file">
   <strong><code><a href="curl.constants.php#constant.curle-partial-file">CURLE_PARTIAL_FILE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    文件传输的大小跟预期的不一致。当服务器首先报告预期的传输大小，然后提供与先前指定的大小不匹配的数据时，就会发生这种情况。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-proxy">
   <strong><code><a href="curl.constants.php#constant.curle-proxy">CURLE_PROXY</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    代理握手错误。<strong><code><a href="curl.constants.php#constant.curlinfo-proxy-error">CURLINFO_PROXY_ERROR</a></code></strong> 提供有关特定问题的额外详细信息。自 PHP 8.2.0 和 cURL 7.73.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-read-error">
   <strong><code><a href="curl.constants.php#constant.curle-read-error">CURLE_READ_ERROR</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    读取本地文件时出现问题，或者读取回调返回错误。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-recv-error">
   <strong><code><a href="curl.constants.php#constant.curle-recv-error">CURLE_RECV_ERROR</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    接收网络数据失败。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-send-error">
   <strong><code><a href="curl.constants.php#constant.curle-send-error">CURLE_SEND_ERROR</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    发送网络数据失败。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-share-in-use">
   <strong><code><a href="curl.constants.php#constant.curle-share-in-use">CURLE_SHARE_IN_USE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ssh">
   <strong><code><a href="curl.constants.php#constant.curle-ssh">CURLE_SSH</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    SSH 会话期间发生未指定的错误。自 cURL 7.16.1 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ssl-cacert">
   <strong><code><a href="curl.constants.php#constant.curle-ssl-cacert">CURLE_SSL_CACERT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ssl-cacert-badfile">
   <strong><code><a href="curl.constants.php#constant.curle-ssl-cacert-badfile">CURLE_SSL_CACERT_BADFILE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    读取 SSL CA 证书时出现问题。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ssl-certproblem">
   <strong><code><a href="curl.constants.php#constant.curle-ssl-certproblem">CURLE_SSL_CERTPROBLEM</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    本地客户端证书有问题。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ssl-cipher">
   <strong><code><a href="curl.constants.php#constant.curle-ssl-cipher">CURLE_SSL_CIPHER</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    无法使用指定的密码。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ssl-connect-error">
   <strong><code><a href="curl.constants.php#constant.curle-ssl-connect-error">CURLE_SSL_CONNECT_ERROR</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    SSL/TLS 握手中某处出现问题。读取错误缓冲区中的消息可提供有关该问题的更多详细信息。可能是证书（文件格式、路径、权限）、密码等。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ssl-engine-notfound">
   <strong><code><a href="curl.constants.php#constant.curle-ssl-engine-notfound">CURLE_SSL_ENGINE_NOTFOUND</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    未找到指定的加密引擎。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ssl-engine-setfailed">
   <strong><code><a href="curl.constants.php#constant.curle-ssl-engine-setfailed">CURLE_SSL_ENGINE_SETFAILED</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    无法将选定的 SSL 加密引擎设置为默认值。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ssl-peer-certificate">
   <strong><code><a href="curl.constants.php#constant.curle-ssl-peer-certificate">CURLE_SSL_PEER_CERTIFICATE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-ssl-pinnedpubkeynotmatch">
   <strong><code><a href="curl.constants.php#constant.curle-ssl-pinnedpubkeynotmatch">CURLE_SSL_PINNEDPUBKEYNOTMATCH</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    无法匹配使用 <strong><code><a href="curl.constants.php#constant.curlopt-pinnedpublickey">CURLOPT_PINNEDPUBLICKEY</a></code></strong> 指定的固定密钥。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-telnet-option-syntax">
   <strong><code><a href="curl.constants.php#constant.curle-telnet-option-syntax">CURLE_TELNET_OPTION_SYNTAX</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-too-many-redirects">
   <strong><code><a href="curl.constants.php#constant.curle-too-many-redirects">CURLE_TOO_MANY_REDIRECTS</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    重定向次数过多。在进行重定向时，libcurl 达到最大数量。可以使用 <strong><code><a href="curl.constants.php#constant.curlopt-maxredirs">CURLOPT_MAXREDIRS</a></code></strong> 设置最大值。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-unknown-telnet-option">
   <strong><code><a href="curl.constants.php#constant.curle-unknown-telnet-option">CURLE_UNKNOWN_TELNET_OPTION</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-unsupported-protocol">
   <strong><code><a href="curl.constants.php#constant.curle-unsupported-protocol">CURLE_UNSUPPORTED_PROTOCOL</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    传递给 libcurl 的 URL 使用了 libcurl 不支持的协议。问题可能是未使用的编译时选项、拼写错误的协议字符串或 libcurl 没有编码的协议。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-url-malformat">
   <strong><code><a href="curl.constants.php#constant.curle-url-malformat">CURLE_URL_MALFORMAT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    URL 格式不正确。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-url-malformat-user">
   <strong><code><a href="curl.constants.php#constant.curle-url-malformat-user">CURLE_URL_MALFORMAT_USER</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">

   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-weird-server-reply">
   <strong><code><a href="curl.constants.php#constant.curle-weird-server-reply">CURLE_WEIRD_SERVER_REPLY</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    服务器发送的数据 libcurl 无法解析。在 cURL 7.51.0 之前，此错误代码称为
    <strong><code><a href="curl.constants.php#constant.curle-ftp-weird-server-reply">CURLE_FTP_WEIRD_SERVER_REPLY</a></code></strong>。自 PHP 7.3.0 和 cURL 7.51.0 起可用
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curle-write-error">
   <strong><code><a href="curl.constants.php#constant.curle-write-error">CURLE_WRITE_ERROR</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    将接收的数据写入本地文件时发生错误，或者从写入回调向 libcurl 返回错误。
   </span>
  </td>
 </tr>
</table>

 

<table id="constant.curl-multi.constants" class="doctable table">
      <tr>
       <th>常量</th>
       <th>描述</th>
      </tr>
 <strong class="title">curl_multi_<span class="replaceable">*</span> 状态常量</strong>
 <tr>
  <td id="constant.curlm-added-already">
   <strong><code><a href="curl.constants.php#constant.curlm-added-already">CURLM_ADDED_ALREADY</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    重复添加句柄到多句柄。自 cURL 7.32.1 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlm-bad-easy-handle">
   <strong><code><a href="curl.constants.php#constant.curlm-bad-easy-handle">CURLM_BAD_EASY_HANDLE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    句柄无效或者不正确。这可能意味着这不是句柄或者该句柄已经被自身或者其他多句柄使用了。自 cURL 7.9.6 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlm-bad-handle">
   <strong><code><a href="curl.constants.php#constant.curlm-bad-handle">CURLM_BAD_HANDLE</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    传入的句柄不是有效的多句柄。自 cURL 7.9.6 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlm-call-multi-perform">
   <strong><code><a href="curl.constants.php#constant.curlm-call-multi-perform">CURLM_CALL_MULTI_PERFORM</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    从 cURL 7.20.0 起，不再使用此常量。在 cURL 7.20.0 之前，如果在返回任何其他常量之前调用
    <span class="function"><a href="function.curl-multi-select.php" class="function">curl_multi_select()</a></span> 或类似函数时，<span class="function"><a href="function.curl-multi-exec.php" class="function">curl_multi_exec()</a></span>
    可能会返回此状态。自 cURL 7.9.6 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlm-internal-error">
   <strong><code><a href="curl.constants.php#constant.curlm-internal-error">CURLM_INTERNAL_ERROR</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    内部 <code class="literal">libcurl</code> 错误。自 cURL 7.9.6 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlm-ok">
   <strong><code><a href="curl.constants.php#constant.curlm-ok">CURLM_OK</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    没有错误。自 cURL 7.9.6 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlm-out-of-memory">
   <strong><code><a href="curl.constants.php#constant.curlm-out-of-memory">CURLM_OUT_OF_MEMORY</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    处理多句柄时内存不足。自 cURL 7.9.6 起可用。
   </span>
  </td>
 </tr>
</table>

 

<table id="constant.curl-pause.constants" class="doctable table">
      <tr>
       <th>常量</th>
       <th>描述</th>
      </tr>
 <strong class="title"><span class="function"><a href="function.curl-pause.php" class="function">curl_pause()</a></span></strong>
 <tr>
  <td id="constant.curlpause-all">
   <strong><code><a href="curl.constants.php#constant.curlpause-all">CURLPAUSE_ALL</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    暂停发送和接收数据。自 cURL 7.18.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlpause-cont">
   <strong><code><a href="curl.constants.php#constant.curlpause-cont">CURLPAUSE_CONT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    取消暂停发送和接收数据。自 cURL 7.18.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlpause-recv">
   <strong><code><a href="curl.constants.php#constant.curlpause-recv">CURLPAUSE_RECV</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    暂停接收数据。自 cURL 7.18.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlpause-recv-cont">
   <strong><code><a href="curl.constants.php#constant.curlpause-recv-cont">CURLPAUSE_RECV_CONT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    取消暂停接收数据。自 cURL 7.18.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlpause-send">
   <strong><code><a href="curl.constants.php#constant.curlpause-send">CURLPAUSE_SEND</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    暂停发送数据。自 cURL 7.18.0 起可用。
   </span>
  </td>
 </tr>
 <tr>
  <td id="constant.curlpause-send-cont">
   <strong><code><a href="curl.constants.php#constant.curlpause-send-cont">CURLPAUSE_SEND_CONT</a></code></strong>
   (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
  </td>
  <td>
   <span class="simpara">
    取消暂停发送数据。自 cURL 7.18.0 起可用。
   </span>
  </td>
 </tr>
</table>

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