birebin sitesinde curl ile bilgileri göndermeme rağmen neden veriler gelmiyor
merhaba arkadaşlar curl kodlarım aşağıda sitenin istediği tüm header bilgilerini göndersemde bağlanmıyor sorun nerede acaba
function Baglan($url){
$headers = [
':authority:www.birebin.com',
':method:GET',
':path:/webapi/api/v1/iddaa/get-bulletin',
':scheme:https',
'accept:application/json, text/plain, */*',
'accept-encoding:gzip, deflate, br, zstd',
'accept-language:tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7',
'authorization:bearer eyJhbGciOiJBMjU2S1ciLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIiwidHlwIjoiSldUIn0.nomNcJs1S2bmPXm5gO82oZurQOrFiREfBxYmhVxvkl-4uRbuhmy0AlklklwPDmiuPwGgf-PZ4_DMp6juK59tJfWFgSzJ86w_.fvpR9_lslN7_ZIlDL3mjMw.09_V6feWXBdjB3u_tQSoFFoeLk2_8MZA2ZFj4pCYIfrkEovpqAXPg9433QWf4_47PEv_NWK7wsa0hJGzFpT7n8VMzo3uMmDtfyZSbLZzWtMqQ57ZzZQl_wpP5ppDI55NDCXjb8iK8qBg-u1McIvad_xvw56-V4KqXujS976U5ZUocw3oqanEz-X-SyYL9SoIQQG_8xV7fuPNBg9XxcJy3xNAp9sRn6-3tQXOsJXXaSP11b31-7DNKCMMftb5i2WtQDsiBOlglWSHN5mioAPajlLKB2-bNgyEbtoONhh_es_nrA7Yt4sTMrok78gPyOPpSZBxKjN8VK0jQUg5C-fnzIKZhiiSfMDs0Jd7vnjU6JnydiaZ_lkK6ySbiX15bXHbgRG3XlXQzjL8zyt2mADhyvMIfkppc_WieSB-B7i0BQj8m3vyOBX_Ob3ifhn4V_V2_JK_HgxGMxyswyEzTpZ98DZV3r1XTUICOfpjelnl1XGgFobREN4TSaUpLVPgOnvxDyqiLDhulcA2IH8MEapAyaTG078D3delWB4mx_kf_BS9Uhmpy2eTsmUTKFN-SaY8oVtn8LIoWNhUe04PqgK9eA.up7rQGqBmAS3G61mdGtdvY4eVehF7XParOOAOsSgA8Q',
'cookie:_gcl_au=1.1.1049931001.1736778726; _ga=GA1.1.1334439743.1736778726; _gcl_gs=2.1.k1$i1737246019$u10575527; _gcl_aw=GCL.1737246038.Cj0KCQiAv628BhC2ARIsAIJIiK_lbs35l3j_dN7t8Q9QjR1hfwzWp-Ru4SpdrQdOB5jmaq-BiaD9IX4aAulYEALw_wcB; ASP.NET_SessionId=ggynqjckf3sdghiikyamvwzs; _ga_EHDP9JNP0X=GS1.1.1737571748.13.1.1737572257.60.0.0',
'priority:u=1, i',
'referer:https://www.birebin.com/iddaa-programi-basketbol?grouptype=date',
'sec-ch-ua:"Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24"',
'sec-ch-ua-mobile:?0',
'sec-ch-ua-platform:"Windows"',
'sec-fetch-dest:empty',
'sec-fetch-mode:cors',
'sec-fetch-site:same-origin',
'user-agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
'cache-control:public,max-age=30',
'content-length:1572797',
'content-type:application/json; charset=utf-8',
'strict-transport-security:max-age=2592000',
'x-powered-by:ASP.NET',
'Referrer Policy:strict-origin-when-cross-origin'
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_ENCODING , "gzip");
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$cikti = curl_exec ($ch);
curl_close ($ch);
return $cikti;
}
$veri = Baglan("https://www.birebin.com/webapi/api/v1/iddaa/get-bulletin");
print_r($veri);
Soru hatalı mı? 👎
Eğer sorunun kurallara aykırı olduğunu düşünüyorsanız lütfen bize bildirin!