How does PHP obtain the requested XML data? The other party submits the XML data through HTTP protocol post. How does PHP obtain this data?
$xml_data ='
'.
''.
'1234567890'. Password>'.
'phpmind.com'.
''. ="" ID="1">'.
''.
'''.
'JHM'. ;101009'.
'101509'. 🎜>'';
$URL = "https://www.yourwebserver.com/path/";
$ch = curl_init($URL);
curl_setopt($ch , Curlopt_mute, 1);
Curl_Setopt ($ ch, curlopt_ssl_verifyHost, 0);
Curl_Setopt t ($ ch, curlopt_post, 1);
Curl_Setopt ( $ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
curl_setopt($ch, CURLOPT_POSTFIELDS, "$xml_data");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);
?>
http://www.bkjia.com/PHPjc/326221.html
www.bkjia.com
true