$ch = curl_init("https://www.instagram.com/accounts/login/");
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
$content = curl_exec($ch);
curl_close($ch);
echo $content;