Why not use the cURL implementation directly?
$c = curl_init('http://www.mydomain.com/u1.php');
curl_setopt($c, CURL_POSTFIELDS, $post_data);
curl_exec($c);
EDIT: To send $post_data, you create a line such as a GET request line:
$vData = array(
'foo' => 'bar',
'zoid' => 'frob',
'slursh' => 'yargh',
);
$post_data = array();
foreach ($vData as $k => $v)
{
$post_data[] = urlencode($k) . '=' . urlencode($v);
}
$post_data = implode('&', $post_data);
source
share