S
Sam1315
Guest
Hi All,
I am getting the following response: 'Empty reply from server'.
ERROR: 52 (Nothing was returned from the server)
I am not getting any response from the plesk panel.
I am really not sure what could be wrong. When I use administrator user/pass to log on to the plesk panel, it works fine.
I'm creating the following xml packet request;
XML version is '1.0', with 'UTF-8' encoding.
<packet version="1.4.2.0">
<mail>
<create>
<filter>
<domain_id>1</domain_id>
<mailname>
<name>test_mail_name</name>
<cp_access>
<enabled>true</enabled>
</cp_access>
</mailname>
</filter>
</create>
</mail>
</packet>
My cUrl request is :
$ch = curl_init();
$url = "https://xxxxxxxx:8443/enterprise/control/agent.php";
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_POSTFIELDS, "$packet");
curl_setopt($ch, CURLOPT_HTTPHEADER, array("HTTP_AUTH_LOGIN: {$login}",
"HTTP_AUTH_PASSWD: {$password}",
"HTTP_PRETTY_PRINT: TRUE","Content-Length: 1398",
"Content-Type: text/xml"));
My API RPC v.1.4.2.0
Plesk Panel version : 9.3.0
OS of the control panel: CentOS (Linux 2.6.18-164.11.1.el5)
Any help is greatly appreciated.
Thanks
I am getting the following response: 'Empty reply from server'.
ERROR: 52 (Nothing was returned from the server)
I am not getting any response from the plesk panel.
I am really not sure what could be wrong. When I use administrator user/pass to log on to the plesk panel, it works fine.
I'm creating the following xml packet request;
XML version is '1.0', with 'UTF-8' encoding.
<packet version="1.4.2.0">
<mail>
<create>
<filter>
<domain_id>1</domain_id>
<mailname>
<name>test_mail_name</name>
<cp_access>
<enabled>true</enabled>
</cp_access>
</mailname>
</filter>
</create>
</mail>
</packet>
My cUrl request is :
$ch = curl_init();
$url = "https://xxxxxxxx:8443/enterprise/control/agent.php";
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_POSTFIELDS, "$packet");
curl_setopt($ch, CURLOPT_HTTPHEADER, array("HTTP_AUTH_LOGIN: {$login}",
"HTTP_AUTH_PASSWD: {$password}",
"HTTP_PRETTY_PRINT: TRUE","Content-Length: 1398",
"Content-Type: text/xml"));
My API RPC v.1.4.2.0
Plesk Panel version : 9.3.0
OS of the control panel: CentOS (Linux 2.6.18-164.11.1.el5)
Any help is greatly appreciated.
Thanks