HTTP 301,302を返すページに対応する場合、これが必要。
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);