J'ai vérifié que $requestDom->saveXml()
renvoie un code XML valide mais à l'URL de destination j'ai print_r ($ _ POST) et il ne reçoit rien. Est-ce que j'ai râté quelque chose? : - \Les champs POST Curl ne sont pas affichés
$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);