Hi,
Here's an example of some code I use tp commumicate with cURL.
Hopefully this helps you a bit.
$xml = "<?xml version=\"1.0\"?>";
$xml .= "<LoyaltyService Version=\"1.0\">";
$xml .= "<Session>";
$xml .= "<Identification>";
$xml .= "<UserName>$username_int</UserName>";
$xml .= "<Password>$password_int</Password>";
$xml .= "</Identification>";
$xml .= "</Session>";
$xml .= "<Submit Cmd=\"LoyaltyTransaction\">";
$xml .= "<CardId>$email</CardId>";
$xml .= "<ClientRef>$mediaID</ClientRef>";
$xml .= "<LoyaltyTransaction Direction=\"issue\" Points=\"$Fixed\">";
$xml .= "<Details Type=\"1\">";
$xml .= "<IssuedVoucherId>$IssuedVoucherID</IssuedVoucherId>";
$xml .= "</Details>";
$xml .= "</LoyaltyTransaction>";
$xml .= "</Submit>";
$xml .= "</LoyaltyService>";
$ch = curl_init ("");
curl_setopt ($ch, CURLOPT_URL, $url_int);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
curl_close ($ch);
After this is done you'll get $result back as a POST. Now you stille have to do something with this data. In this case I use Xpath, cause I get a XML back.