curl_getinfo

 mixed curl_getinfo ( resource $ch [, int $opt = 0 ] ) 

説明

Gets information about the last transfer.

戻り値

If opt is given, returns its value as a string. Otherwise, returns an associative array with the following elements (which correspond to opt), or FALSE on failure: "url" "content_type" "http_code" "header_size" "request_size" "filetime" "ssl_verify_result" "redirect_count" "total_time" "namelookup_time" "connect_time" "pretransfer_time" "size_upload" "size_download" "speed_download" "speed_upload" "download_content_length" "upload_content_length" "starttransfer_time" "redirect_time" "certinfo" "request_header" (This is only set if the CURLINFO_HEADER_OUT is set by a previous call to curl_setopt())