Forum Moderators: coopster
$user_agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.sitecreator.ru/siteposition/siteposition.php');
curl_setopt ($ch, CURLOPT_POST, 1);
$string="отдых.ру";
$string=mb_convert_encoding($string,'windows-1251','koi8-r');
curl_setopt ($ch, CURLOPT_POSTFIELDS,'flagY=true&site=otdyh.ru&words='.$string);
curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
$store = curl_exec ($ch);
echo $store;
The store shows forms filled with curl. But id didn't show a result of this. May be somebody can help me?
Thank in advance!