curl post işinizi görürmü?

<?php
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, 'post edilecek adres'); 
curl_setopt ($ch, CURLOPT_POST, 1); 
curl_setopt ($ch, CURLOPT_POSTFIELDS, 'postname=postvalue&postname2=postvalue2');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); 
$store = curl_exec ($ch);  
curl_setopt($ch, CURLOPT_COOKIEFILE, 'dosya.txt');
curl_setopt($ch, CURLOPT_URL, "post edilecek adres");
curl_close ($ch);
?>