<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.curl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.curl-pause.php',
    1 => 'curl_pause',
    2 => 'Pause and unpause a connection',
  ),
  'up' => 
  array (
    0 => 'ref.curl.php',
    1 => 'cURL Functions',
  ),
  'prev' => 
  array (
    0 => 'function.curl-multi-strerror.php',
    1 => 'curl_multi_strerror',
  ),
  'next' => 
  array (
    0 => 'function.curl-reset.php',
    1 => 'curl_reset',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/curl/functions/curl-pause.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.curl-pause" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">curl_pause</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">curl_pause</span> &mdash; <span class="dc-title">Pause and unpause a connection</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.curl-pause-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>curl_pause</strong></span>(<span class="methodparam"><span class="type"><a href="class.curlhandle.php" class="type CurlHandle">CurlHandle</a></span> <code class="parameter">$handle</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$flags</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   Pause or unpause a cURL session. A session can be paused while a transfer is in progress,
   in either the read, write or both directions, by calling this function from a callback
   registered with <span class="function"><a href="function.curl-setopt.php" class="function">curl_setopt()</a></span>.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.curl-pause-parameters">
  <h3 class="title">Parameters</h3>
  <dl>
   <dt><code class="parameter">handle</code>
</dt><dd><p class="para">A cURL handle returned by
<span class="function"><a href="function.curl-init.php" class="function">curl_init()</a></span>.</p></dd>
   
    <dt><code class="parameter">flags</code></dt>
    <dd>
     <p class="para">
      One of <strong><code><a href="curl.constants.php#constant.curlpause-all">CURLPAUSE_<span class="replaceable">*</span></a></code></strong> constants.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.curl-pause-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns an error code (<strong><code><a href="curl.constants.php#constant.curle-ok">CURLE_OK</a></code></strong> for no error).
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.curl-pause-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.0.0</td>
 <td>
  <code class="parameter">handle</code> expects a <span class="classname"><a href="class.curlhandle.php" class="classname">CurlHandle</a></span>
  instance now; previously, a <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> was expected.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


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