i need to get html souce code from aspx page,as example can use Go daddy link
I have tried cURL and file_get_contents bui it dons't work. Tried cURL with setting user agent. file_get_contents shows Redirection limit reached!
$url = 'godaddy.com/hosting/website-builder.aspx?ci=88060';
$user_agent = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36 OPR/22.0.1471.40 (Edition Next)";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$result=curl_exec($ch);
curl_close ($ch);
echo "Results: <br>".$result;