note 15604 deleted from ref.curl by betz
| From: | betz@php.net | Date: | Fri, 23 Apr 2004 08:48:40 +0000 |
| Subject: | note 15604 deleted from ref.curl by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-68596@lists.php.net to get a copy of this message | ||
Note Submitter: jeff@vertexdev.com
----
The PHP 4.0.6 code contains some functions that are not documented on this page:
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.
curl_error(int ch) - Returns a descriptive error string containing the last error code for the
session.
curl_errno(int ch) - Returns an integer containing the last error number
Here is some output from curl_getinfo():
Array
(
[url] => http://www.moreover.com/cgi-local/page?feed=525&o=rss<br>
[http_code] => 200
[header_size] => 261
[request_size] => 155
[filetime] => 0
[total_time] => 0.7408
[namelookup_time] => 0.031381
[connect_time] => 0.154251
[pretransfer_time] => 0.154589
[size_upload] => 0
[size_download] => 5612
[speed_download] => 3133.7556977376
[speed_upload] => 0
)