Здравсвуйте господа. Пытаюсть тут подключиться к ЕРР - серверу epp.uadns.com таким образом :
| Код | <? $host = $_POST['host']; $port = $_POST['port']; $xml_data= '<?xml version="1.0" encoding="UTF-8" standalone="no"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <hello/> </epp>'; $ch = curl_init($host); curl_setopt($ch, CURLOPT_PORT , $port); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:text/xml')); curl_setopt($ch, CURLOPT_POST, TRUE); curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_data); $res = curl_exec($ch); curl_close($ch); echo "RESPONSE :<br/>".$res;
|
в ответ получаю пустоту. быть может я ошибся с кУРЛ т.к. первый раз пользуюсь. буду весьма признателен за любые подсказки |