Sending request `

<?php $post="<?xml version=\"1.0\" encoding=\"UTF-8\"?> <message> <method name=\"getPlayerInfo\"> <credentials login=\"test\" password=\"12345\" /> </method> </message>"; $url = "url"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_FAILONERROR, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT, 6); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $result = curl_exec($ch); curl_close($ch); ?>` 

How to get an answer ??

  • Dear @Erise Wdg, read the documentation carefully! - Dmitry

0