Curl İle Vbulletin Bir Siteye Konu Açmam gerekiyor.
postfields ile denedim ama olmadı nasıl yaparım yardımcı olurmusnuz
<?php
$user = 'ahmet';
$pass = '152244';
$ch = curl_init();
curl_setopt($ch , CURLOPT_URL, 'http://127.0.0.1/vb/');
curl_setopt($ch , CURLOPT_RETURNTRANSFER , TRUE);
curl_setopt($ch , CURLOPT_REFERER, 'http://google.com');
curl_setopt($ch , CURLOPT_COOKIEFILE, dirname(__FILE__).'/cookies.txt');
curl_setopt($ch , CURLOPT_COOKIEJAR, dirname(__FILE__).'/cookies.txt');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
$exec = curl_exec($ch);
preg_match('/securitytoken" value="(.*?)"/',$exec,$securitytoken);
curl_setopt($ch , CURLOPT_URL, 'http://127.0.0.1/vb/login.php?do=login');
curl_setopt($ch , CURLOPT_POST , TRUE);
curl_setopt($ch , CURLOPT_POSTFIELDS, 'subject=sdasrrrrrrrdfasf&message=sadrrrrfas&sbutton=Submit New Thread');
curl_exec($ch);
curl_setopt($ch , CURLOPT_URL, 'http://127.0.0.1/vb/newthread.php?do=newthread&f=2');
curl_setopt($ch , CURLOPT_POST, FALSE);
$exec3 = curl_exec($ch);
echo $exec3;
curl_close($ch);
?>bunu denedim olmadı
yardımcı olursanız Sevinirim
şimdiden teşekkürler
not: konu açacağım site bana ait değil o yüzden uzaktan curl ile veri gönderemeyi deniyorum