$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://russianpost.ru/resp_engine.aspx?Path=rp/servise/ru/home/postuslug/trackingpo');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6");
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_REFERER, 'http://russianpost.ru/rp/servise/ru/home/postuslug/trackingpo');
$post = array(
'PATHCUR'=>'rp/servise/ru/home/postuslug/trackingpo',
'CDAY'=>'28',
'CMONTH'=>'05',
'CYEAR'=>'2010',
'PATHWEB'=>'RP/INDEX/RU/Home',
'PATHPAGE'=>'RP/INDEX/RU/Home/Search',
'BarCode'=>'11512780151385',
'searchsign'=>'1'
);
foreach($post as $key=>$value){
$post_data .= $key.'='.urlencode($value).'&';
}
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch, CURLOPT_POST, 1);
$response = curl_exec($ch);
curl_close($ch);
echo $response;