Örneğin botyazilansite.com a curl ile veri gönderdiğimde botyazilansite.com işlemi tamamlamak için yonlendirilensite.com a yönlendiriyor ve benim bazı şifreleri girmemi istiyor. daha sonra şifreler doğru ise botyazilansite.com a geri geliyor ve işlem yapıyor. Bura ben verileri post ettikten sonra 1. yönlendirme işlemi direk o siteye botum yönlensin daha sonra geri botyazilansite.com a geldiğinde benim yazdığım botun kodları çalışsın istiyorum. bunu nasıl yapabilirim ?
teşekkürler
$post = [
'product_id' => $product_id,
'product_quantity' => $product_quantity,
];
curl_setopt($ch, CURLOPT_URL, 'http://www.botyazilansite.com/islem.php');
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
$store = curl_exec ($ch);
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
$icerik = curl_exec ($ch);
echo $icerik;