Connect error: Permission denied (13) - xmlrpx beta 3.0.0 -
Brought to you by:
ggiunta
Hi there
We are trying to connect to a https server on port 1089, and keep getting the following error
Connect error: Permission denied (13)
include("lib/xmlrpc.inc");
$service = ;
$password = '';
$channel = ;
$phptime = time() -7200;
$delivery = date ("Ymd\TH:i:s", $phptime);
$phptime = time() + 3600;
$expiry = date ("Ymd\TH:i:s", $phptime);
$format = new xmlrpcmsg('EAPIGateway.VirtualSMS', array(new xmlrpcval(array("Service" => new xmlrpcval($service, "int"), "Password" => new xmlrpcval($password, "string"), "Channel" => new xmlrpcval($channel, "int"), "Numbers" => new xmlrpcval($number, "string"), "SMSText" => new xmlrpcval($message, "string"), "Delivery" => new xmlrpcval($delivery, "dateTime.iso8601"),"Expiry" => new xmlrpcval($expiry, "dateTime.iso8601"), ),"struct")));
print_r($format);
//$client = new xmlrpc_client("https://dragon.sa.operatelecom.com:1089/Virtual");
$client = new xmlrpc_client('/Virtual/', 'dragon.sa.operatelecom.com',1089);
//'/RPC/','www.tummytech.com',80);
$client->setDebug(2);
$client->return_type = 'phpvals';
$client->setSSLVerifyPeer(0);
$request=$client->send($format);
print_r ($request->faultString());
return $request->val['Identifier'];
Anonymous
If you use the 'standard' constructor for $client (ie. the one with 3 separate parameters), to send a message via https you need to use a slightly different 'send' call: $request=$client->send($format, $timeout, 'https'); - or you can use 'https' as 4th param for the constructor
you might also try so set $client->setSSLVerifyHost(false);