Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion reference/curl/functions/curl-close.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<refsynopsisdiv>
&warn.deprecated.function-8-5-0;
</refsynopsisdiv>

<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
Expand All @@ -18,6 +18,14 @@
<methodparam><type>CurlHandle</type><parameter>handle</parameter></methodparam>
</methodsynopsis>
&note.resource-migration-8.0-dead-function;
<note>
<simpara>
If cookies need to be written before the <parameter>handle</parameter>
is destroyed, call <function>curl_setopt</function>(<parameter>handle</parameter>,
<constant>CURLOPT_COOKIELIST</constant>, <literal>"FLUSH"</literal>).
</simpara>
</note>

<para>
Closes a cURL session and frees all resources. The cURL handle,
<parameter>handle</parameter>, is also deleted.
Expand Down