From 71bc29ab34bfa6b66c53c8959519c54d5cedecb0 Mon Sep 17 00:00:00 2001 From: Jean-Sebastien Hedde Date: Tue, 21 Oct 2014 18:32:54 +0000 Subject: [PATCH] Adds documentation for: CURLINFO_REDIRECT_URL CURLINFO_PRIMARY_IP CURLINFO_PRIMARY_PORT CURLINFO_LOCAL_IP CURLINFO_LOCAL_PORT Sources: cURL doc: http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html PHP changelog: http://php.net/ChangeLog-5.php -- Provided by anonymous 50443 (francois.bonzon@gmail.com) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335116 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/curl/functions/curl-getinfo.xml | 60 ++++++++++++++++++++++- 1 file changed, 58 insertions(+), 2 deletions(-) diff --git a/reference/curl/functions/curl-getinfo.xml b/reference/curl/functions/curl-getinfo.xml index ba9b52837c..540319fa39 100644 --- a/reference/curl/functions/curl-getinfo.xml +++ b/reference/curl/functions/curl-getinfo.xml @@ -71,12 +71,37 @@ - CURLINFO_REDIRECT_COUNT - Number of redirects + CURLINFO_REDIRECT_COUNT - Number of redirects, with the CURLOPT_FOLLOWLOCATION option enabled - CURLINFO_REDIRECT_TIME - Time in seconds of all redirection steps before final transaction was started + CURLINFO_REDIRECT_TIME - Time in seconds of all redirection steps before final transaction was started, with the CURLOPT_FOLLOWLOCATION option enabled + + + + + CURLINFO_REDIRECT_URL - URL of final transaction, with the CURLOPT_FOLLOWLOCATION option enabled + + + + + CURLINFO_PRIMARY_IP - IP address of the most recent connection + + + + + CURLINFO_PRIMARY_PORT - Destination port of the most recent connection + + + + + CURLINFO_LOCAL_IP - Local (source) IP address of the most recent connection + + + + + CURLINFO_LOCAL_PORT - Local (source) port of the most recent connection @@ -256,6 +281,31 @@ "certinfo" + + + "primary_ip" + + + + + "primary_port" + + + + + "local_ip" + + + + + "local_port" + + + + + "redirect_url" + + "request_header" (This is only set if the CURLINFO_HEADER_OUT @@ -278,6 +328,12 @@ + + 5.3.7 + + Introduced CURLINFO_REDIRECT_URL. + + 5.1.3