From 80b45edaea8a1c1b724e20bb20cddd4dfaaed62a Mon Sep 17 00:00:00 2001 From: Jean-Sebastien Hedde Date: Tue, 30 Dec 2014 12:51:33 +0000 Subject: [PATCH] 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:] CURLOPT_PRIVATE Any data that should be associated with this cURL handle. This data can subsequently be retrieved with the CURLINFO_PRIVATE option of curl_getinfo. 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 --- reference/curl/functions/curl-getinfo.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/reference/curl/functions/curl-getinfo.xml b/reference/curl/functions/curl-getinfo.xml index 540319fa39..4fe620f5e6 100644 --- a/reference/curl/functions/curl-getinfo.xml +++ b/reference/curl/functions/curl-getinfo.xml @@ -81,7 +81,7 @@ - CURLINFO_REDIRECT_URL - URL of final transaction, with the CURLOPT_FOLLOWLOCATION option enabled + CURLINFO_REDIRECT_URL - With the CURLOPT_FOLLOWLOCATION option disabled: redirect URL found in the last transaction, that should be requested manually next. With the CURLOPT_FOLLOWLOCATION option enabled: this is empty. The redirect URL in this case is available in CURLINFO_EFFECTIVE_URL @@ -161,6 +161,11 @@ CURLINFO_CONTENT_TYPE - Content-Type: of the requested document, NULL indicates server did not send valid Content-Type: header + + + CURLINFO_PRIVATE - Private data associated with this cURL handle, previously set with the CURLOPT_PRIVATE option of curl_setopt + + @@ -313,6 +318,7 @@ + Note that private data is not included in the associative array and must be retrieved individually with the CURLINFO_PRIVATE option. @@ -334,6 +340,12 @@ Introduced CURLINFO_REDIRECT_URL. + + 5.2.4 + + Introduced CURLINFO_PRIVATE. + + 5.1.3