php 如何获取请求的xml数据,对方通过http协议post提交过来xml数据,php如何获取到这些数据呢?
<BR><?php <BR>$xml_data =''. <BR>''. <BR>'1234567890'. <BR>'lgsoftwares'. <BR>'mypassword'. <BR>'phpmind.com'. <BR>''. <BR>''. <BR>''. <BR>''. <BR>''. <BR>''. <BR>'JHM'. <BR>'OGGSHE'. <BR>'101009'. <BR>'101509'. <BR>'1'. <BR>''. <BR>''; <BR>$URL = "https://www.yourwebserver.com/path/"; <BR>$ch = curl_init($URL); <BR>curl_setopt($ch, CURLOPT_MUTE, 1); <BR>curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); <BR>curl_setopt($ch, CURLO<i>本文@来#源gaodai$ma#com搞$$代**码网</i><strong>搞代gaodaima码</strong>PT_SSL_VERIFYPEER, 0); <BR>curl_setopt($ch, CURLOPT_POST, 1); <BR>curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml')); <BR>curl_setopt($ch, CURLOPT_POSTFIELDS, "$xml_data"); <BR>curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); <BR>$output = curl_exec($ch); <BR>curl_close($ch); <BR>?> <BR>