note 15604 modified in ref.curl by irchtml
| From: | irchtml@php.net | Date: | Wed, 25 Feb 2004 10:46:45 +0000 |
| Subject: | note 15604 modified in ref.curl by irchtml | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-65701@lists.php.net to get a copy of this message | ||
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
)
--was--
<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