References:

http://curl.haxx.se/libcurl/c/CURLOPT_PRIVATE.html
http://php.net/ChangeLog-5.php


I would like to edit the documentation of curl_setopt() too, but editing of this page is unavailable since weeks due to pending review.

Can you please review pending changes so I can edit the page, or add yourself the following:


under [value should be a string for the following values of the option parameter:]

<constant>CURLOPT_PRIVATE</constant>
Any data that should be associated with this cURL handle. This data can subsequently be retrieved with the <constant>CURLINFO_PRIVATE</constant> option of <function>curl_getinfo</function>. cURL does nothing with this data. When using a cURL multi handle, this private data is typically a unique key to identify a normal cURL handle.
Added in cURL 7.10.3.

under [Changelog]:

5.2.4
Introduced CURLOPT_PRIVATE.


-- 
Provided by anonymous 50443 (francois.bonzon@gmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335488 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jean-Sebastien Hedde 2014-12-30 12:51:33 +00:00
parent 41060e691d
commit 80b45edaea

View file

@ -81,7 +81,7 @@
</listitem>
<listitem>
<simpara>
<constant>CURLINFO_REDIRECT_URL</constant> - URL of final transaction, with the <constant>CURLOPT_FOLLOWLOCATION</constant> option enabled
<constant>CURLINFO_REDIRECT_URL</constant> - With the <constant>CURLOPT_FOLLOWLOCATION</constant> option disabled: redirect URL found in the last transaction, that should be requested manually next. With the <constant>CURLOPT_FOLLOWLOCATION</constant> option enabled: this is empty. The redirect URL in this case is available in <constant>CURLINFO_EFFECTIVE_URL</constant>
</simpara>
</listitem>
<listitem>
@ -161,6 +161,11 @@
<constant>CURLINFO_CONTENT_TYPE</constant> - <literal>Content-Type:</literal> of the requested document, NULL indicates server did not send valid <literal>Content-Type:</literal> header
</simpara>
</listitem>
<listitem>
<simpara>
<constant>CURLINFO_PRIVATE</constant> - Private data associated with this cURL handle, previously set with the <constant>CURLOPT_PRIVATE</constant> option of <function>curl_setopt</function>
</simpara>
</listitem>
</itemizedlist>
</para>
</listitem>
@ -313,6 +318,7 @@
</simpara>
</listitem>
</itemizedlist>
Note that private data is not included in the associative array and must be retrieved individually with the <constant>CURLINFO_PRIVATE</constant> option.
</para>
</refsect1>
@ -334,6 +340,12 @@
Introduced <constant>CURLINFO_REDIRECT_URL</constant>.
</entry>
</row>
<row>
<entry>5.2.4</entry>
<entry>
Introduced <constant>CURLINFO_PRIVATE</constant>.
</entry>
</row>
<row>
<entry>5.1.3</entry>
<entry>