Merhabalar,
PHP cURL ile datamı a sitesine post olarak gönderiyorum akabinde header("Location:a") ile aynı siteye yönleniyorum fakat post etmiş olduğum verileri göremiyorum bu işlemi nasıl yapabilirim. html'deki form metodunu kullanmak istemiyorum.
Çok araştırma yaptım cURL CURLOPT_FOLLOWLOCATION sınıfını da kullandım fakat olmadı bir yerde hata yapmış olabilirim.
Örnek kodlamam

$params = array(
"id" => 97693628,
"status" => 1,
"message" => işlem başarılı ,
"price" => 100,
);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.asite.com");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);


$response = curl_exec($ch);


curl_close($ch);


header('Location:https://www.asite.com');
exit();
Post edilen site ile akabinde yönlenilecek site aynı.
Yardım ederseniz sevinirim.
İyi çalışmalar.