<?php
$ch = curl_init("http://example.com/curl_target.php");
curl_setopt($ch, CURLOPT_HEADER, 0); // don't want header info
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // make the result the return value of curl_exec
curl_setopt($ch, CURLOPT_POST, 1); // do a POST, not a GET
curl_setopt( $ch, CURLOPT_POSTFIELDS , 'para1=val1¶2=val2' ); // add the POST info
$output = curl_exec($ch); // send it
curl_close($ch); // clean up
echo $output; // show the response