I am trying to connect epp and submitting xml but it returns nothing except 'server connected'.
$xml = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://ift.tt/ra1lAU" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
<hello />
</epp>';
$output = '';
$fp = fsockopen("epp.host.com", 44, $errno, $errstr);
if(!$fp) {
echo "ERROR: $errno - $errstr<br />\n";
}
else{
echo "epp connected\r\n";
fwrite($fp, $xml."\r\n");
while(!feof($fp)){
$output .= fgets($fp, 128);
}
fclose($fp);
}
$result = strtok($output, "\n");
echo $result;
Can you please suggest about what i am missing in this code to resolve this. Thanks
No comments:
Post a Comment