<?php $url = "http://www.yahoo.co.jp/"; $ch = curl_init(); // はじめ //オプション curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $info = curl_getinfo($ch);//この関数で取得 curl_close($ch); //終了 var_dump($info); >> array(22) { ["url"]=> string(23) "http://www.yahoo.co.jp/" ["content_type"]=> NULL ["http_code"]=> int(0) ["header_size"]=> int(0) ["request_size"]=> int(0) ["file
