merhaba arkadaşlar, kullandığım curl kodlarıyla facebook dahil diğer sitelerden veri çekebiliyorum. twitterda ise bağlanıyor ancak bu tarayıcı desteklenmiyor hatası alıyorum birçok useragent denedim ancak mobil user agent ile twitterin çok eski halini görebiliyorum geçen sene böyle bir sorun yoktu kullanıyordum nasıl çözebilirim bu sorunu acaba? teşekkürler şimdiden.
$link = "https://www.twitter.com/";
$header = array(
'Origin: https://twitter.com',
'Upgrade-Insecure-Requests: 1',
"User-Agent: Mozilla / 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit / 537.36 (KHTML, Gecko gibi) Krom / 74.0.3729.169 Safari / 537.362020-08-05 19:03:10\r\n",
'referer: https://twitter.com/');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $link);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_REFERER, "https://twitter.com/");
$x = curl_exec ($ch);
curl_close($ch);
echo $x;