I've verified that $requestDom->saveXml()
is returning valid XML but at the destination URL I have print_r($_POST) and it doesn't receive anything. Am I missing something here? :-\
$connection = curl_init();
curl_setopt($connection, CURLOPT_POSTFIELDS, array(
'xml' => $requestDom->saveXml()
));
curl_setopt($connection, CURLOPT_HEADER, false); //with or without this option, it doesn't work
curl_setopt($connection, CURLOPT_RETURNTRANSFER, true);
curl_setopt($connection, CURLOPT_POST, true);
curl_setopt($connection, CURLOPT_URL, 'http://sample.com');
$response = curl_exec($connection);