301 Moved Permanently xətası
[code]$deger = "message=testim&login=flan&pass=12345";
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "http://site.net/chat.php?");
curl_setopt($curl, CURLOPT_REFERER, "http://google.az/");
curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_POST, true); // YORUM YAPMAK
curl_setopt($curl, CURLOPT_POSTFIELDS, $deger); // YORUM ATMAK İÇİN FONKSİYON
$veri = curl_exec($curl);
curl_close($curl);
echo $veri;[/code]
Belə bir curl nan başqa bir sayta post göndərmək istyirəm
amma qarşıma 301 Moved Permanently xetası çıxır
bu nedəndir?normalda digər saytlara post göndərmək olur amma mənə lazım olan saytda bu xətanı alıram.
hansısa koda qadaqa qoyulubsa post göndərmək üçün digər hansı koddan istifadə ede bilərəm?