note 15604 added to ref.curl
| From: | jeff at vertexdev dot com | Date: | Sat, 22 Sep 2001 14:22:44 +0000 |
| Subject: | note 15604 added to ref.curl | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18188@lists.php.net to get a copy of this message | ||
<p>The PHP 4.0.6 code contains some functions that are not documented on this page:</p>
<p>curl_getinfo(int ch) - Returns an associative array with detailed information about the
last transfer, including the actual URL fetched, the HTTP response code, and the time taken to
perform each phase of the transfer.</p>
<p>curl_error(int ch) - Returns a descriptive error string containing the last error code for
the session.</p>
<p>curl_errno(int ch) - Returns an integer containing the last error number</p>
<p>Here is some output from curl_getinfo():</p>
Array<br>
(<br>
[url] =><br> http://www.moreover.com/cgi-local/page?feed=525&o=rss<br>
[http_code] => 200<br>
[header_size] => 261<br>
[request_size] => 155<br>
[filetime] => 0<br>
[total_time] => 0.7408<br>
[namelookup_time] => 0.031381<br>
[connect_time] => 0.154251<br>
[pretransfer_time] => 0.154589<br>
[size_upload] => 0<br>
[size_download] => 5612<br>
[speed_download] => 3133.7556977376<br>
[speed_upload] => 0<br>
)<br>
http://www.php.net/manual/en/ref.curl.php