Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Control » kerio api script error (500 - Internal server error on remote server https://server_address:4081/admin/api/jsonrpc/)
  •  
alihoseini

Messages: 2
Karma: 0
Send a private message to this user
this is my code
ini_set('display_errors', 'on');
error_reporting(E_ALL);

require_once(dirname(__FILE__) . '/../../src/KerioControlApi.php');
require_once(dirname(__FILE__) . '/../class/HtmlHelper.php');
require_once(dirname(__FILE__) . '/../config.php');

$api = new KerioControlApi($name, $vendor, $version);

$html = new HtmlHelper();

/* Main application */
try {
	/* Login */
	$session = $api->login($hostname, $username, $password);
	
	/* Get data */
	$params = array('countLines' => '334','fromLine' => '-1', 'logName' => 'web');
	$result = $api->sendRequest('Logs.get', $params);
	print_r($result);

}
catch (KerioApiException $error) {

	/* Catch possible errors */
	$html->printError($error->getMessage());
}

/* Logout */
if (isset($session)) {
	$api->logout();
}



after run code i get this error :
500 - Internal server error
on remote server server_address:4081/admin/api/jsonrpc/



[Updated on: Tue, 04 March 2014 11:15]

Previous Topic: Pages sometime cannot be opened.
Next Topic: Kerio en Linux
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Mon Aug 21 23:42:03 CEST 2017

Total time taken to generate the page: 0.00394 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.