Jump to content


Photo

Problem with API with last firmware update (v8.1.0.003)

API problem

  • Please log in to reply
1 reply to this topic

#1 bsf1-admin

bsf1-admin
  • Members
  • 2 posts

Posted 30 January 2019 - 05:23 AM

After the last firmware update (v8.1.0.003), the API I used with a php script not work.
 
For example the API call I used for the list of domains,

<?php
include("xmlrpc.inc");

$y = new xmlrpcval(array( "child_type" => new xmlrpcval ("domain", "string"), "path" => new xmlrpcval ("", "string"), "type" => new xmlrpcval ("global", "string")), "struct");
$m = new xmlrpcmsg('config.list');
$m->addParam($y);
$c = new xmlrpc_client("/cgi-mod/api.cgi?password=mypassword", "barracuda_hostname",80);
$r = $c->send($m);
if (!$r->faultCode()) {
$v = $r->value();
print $r->serialize();
} else {
print "Fault <BR>";
print "Code: " . htmlentities($r->faultCode()) . "<BR>" .
"Reason: '" . htmlentities($r->faultString()) . "'<BR>";
}
?>

Any idea???

Thanks

 



#2 bsf1-admin

bsf1-admin
  • Members
  • 2 posts

Posted 05 March 2019 - 07:12 AM

Response error is:

XML-RPC: xmlrpcmsg::parseResponse: no response received from server.
Fault <BR>Code: 6<BR>Reason: 'No data received from server.'<BR>