$cook="PHPSESSID=$session; lang=russian"; $ch = curl_init(); $fields="user_name=alex1123456234&user_email=krapivins%40mail.ru&user_password=krapivins&user_password2=krapivins&rulescheck=1&op=confnewuser"; curl_setopt ($ch, CURLOPT_REFERER, "http://bsline.ru/index.php?name=Account"); $useragent="Mozilla/5.0 (Windows; U; Windows NT 5.2; ru; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 YB/4.1.0"; curl_setopt ($ch, CURLOPT_URL, $urlpars); curl_setopt($ch,CURLOPT_USERAGENT,$useragent); curl_setopt($ch,CURLOPT_NOBODY,0); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_setopt ($ch, CURLOPT_COOKIE, $cook); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); $result=curl_exec ($ch); curl_close ($ch); print_r($result);