$HTTP_POST_VARS["user"],
"password" => $HTTP_POST_VARS["password"],
"zone" => $HTTP_POST_VARS["zone"],
"name" => $HTTP_POST_VARS["name"],
"oldaddress" => $HTTP_POST_VARS["oldaddress"],
"newaddress" => $HTTP_POST_VARS["newaddress"]
)
);
$f=new xmlrpcmsg('xname.updateArecord',
array($req)
);
print "" . htmlentities($f->serialize()) . "
\n";
$c=new xmlrpc_client("/xmlrpc.php", "www.xname.org", 0);
$c->setDebug(1);
$r=$c->send($f, 0, "https");
if (!$r) { die("send failed"); }
$v=$r->value();
if (!$r->faultCode()) {
print "State number ". $HTTP_POST_VARS["stateno"] . " is " .
$v->scalarval() . "
";
print "
I got this value back
" .
htmlentities($r->serialize()). "
\n";
} else {
print "Fault: ";
print "Code: " . $r->faultCode() .
" Reason '" .$r->faultString()."'
";
}
}
print "
";
?>