<?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 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.curl-reset.php',
    1 => 'curl_reset',
    2 => 'Setzt alle Optionen eines libcurl-Session-Handles zur&uuml;ck',
  ),
  'up' => 
  array (
    0 => 'ref.curl.php',
    1 => 'cURL Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.curl-pause.php',
    1 => 'curl_pause',
  ),
  'next' => 
  array (
    0 => 'function.curl-setopt.php',
    1 => 'curl_setopt',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/curl/functions/curl-reset.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.curl-reset" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">curl_reset</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">curl_reset</span> &mdash; <span class="dc-title">Setzt alle Optionen eines libcurl-Session-Handles zurück</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.curl-reset-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>curl_reset</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="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="para rdfs-comment">
   Diese Funktion setzt alle Optionen, die für das angegebene cURL-Handle gesetzt wurden, auf die Standardwerte zurück.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.curl-reset-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   <dt><code class="parameter">handle</code>
</dt><dd><p class="para">Ein von <span class="function"><a href="function.curl-init.php" class="function">curl_init()</a></span> zurückgegebenes
cURL-Handle.</p></dd>
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.curl-reset-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Es wird kein Wert zurückgegeben.
  </p>
 </div>


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

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.0.0</td>
 <td>
  <code class="parameter">handle</code> erwartet nun eine
  <span class="classname"><a href="class.curlhandle.php" class="classname">CurlHandle</a></span>-Instanz; vorher wurde eine
  <span class="type"><a href="language.types.resource.php" class="link">Ressource</a></span> erwartet.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.curl-reset-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Beispiel #1 <span class="function"><strong>curl_reset()</strong></span>-Beispiel</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">// Erstellt ein cURL-Handle<br /></span><span style="color: #0000BB">$ch </span><span style="color: #007700">= </span><span style="color: #0000BB">curl_init</span><span style="color: #007700">();<br /><br /></span><span style="color: #FF8000">// Setzt die CURLOPT_USERAGENT-Option<br /></span><span style="color: #0000BB">curl_setopt</span><span style="color: #007700">(</span><span style="color: #0000BB">$ch</span><span style="color: #007700">, </span><span style="color: #0000BB">CURLOPT_USERAGENT</span><span style="color: #007700">, </span><span style="color: #DD0000">"Mein Test-User-Agent"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// Setzt alle Optionen zurück<br /></span><span style="color: #0000BB">curl_reset</span><span style="color: #007700">(</span><span style="color: #0000BB">$ch</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// Führt den HTTP-Request aus<br /></span><span style="color: #0000BB">curl_setopt</span><span style="color: #007700">(</span><span style="color: #0000BB">$ch</span><span style="color: #007700">, </span><span style="color: #0000BB">CURLOPT_URL</span><span style="color: #007700">, </span><span style="color: #DD0000">'http://example.com/'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">curl_exec</span><span style="color: #007700">(</span><span style="color: #0000BB">$ch</span><span style="color: #007700">); </span><span style="color: #FF8000">// the previously set user-agent will be not sent, it has been reset by curl_reset<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.curl-reset-notes">
  <h3 class="title">Anmerkungen</h3>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <p class="para">
    <span class="function"><strong>curl_reset()</strong></span> setzt außerdem die URL zurück, die in der <span class="function"><a href="function.curl-init.php" class="function">curl_init()</a></span>-Funktion
    gesetzt wurde.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.curl-reset-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.curl-setopt.php" class="function" rel="rdfs-seeAlso">curl_setopt()</a> - Setzt eine Option f&uuml;r einen cURL-Transfer</span></li>
   </ul>
  </p>
 </div>


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