• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Plesk RPC API

oerlemans

New Pleskian
I'm using the Plesk RPC API

I send this

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<packet version="1.4.2.0">
......


and get this error
error 1005: Protocol version '0.0.0.0' is not supported. Current protocol version is '1.5.0.0'

I use Plesk 8.1 for Linux, so the packet version should be 1.4.2.0.

Does anyone know how to solve this error?
 
Error 1005

Hi,

i have the same error using Plesk 8.2 under Windows 2003.

Any ideas??
 
I do this

<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.4.2.0">
<operator>
<action>
<content />
</action>
</operator>
</packet>

Works fine for me for Linux, same packet worked for 8.0, 8.1, 8.1.1 and 8.2 so far :)
 
hi,
its a good idea, but it doesnt work with my installation.

i use coldfusion here is my code:

<cfset LOGIN = "admin">
<cfset PASSWD = "setup">

<cfxml variable="xmlSend">
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.4.2.0">
<client>
<add>
<gen_info>
<cname>LogicSoft Ltd.</cname>
<pname>Stephen Lowell</pname>
<login>stevelow</login>
<passwd>steve78</passwd>
<status>0</status>
<phone>416 907 9944</phone>
<fax>928 752 3905</fax>
<email>[email protected]</email>
<address>105 Brisbane Road, Unit 2</address>
<city>Toronto</city>
<state/>
<pcode/>
<country>CA</country>
</gen_info>
<limits>
<disk_space>100000</disk_space>
<max_dom>50</max_dom>
<max_subdom>250</max_subdom>
<max_webapps>30</max_webapps>
<max_traffic>50000</max_traffic>
<max_db>200</max_db>
<mysql_dbase_space>50000</mysql_dbase_space>
<max_shared_ssl_links>50</max_shared_ssl_links>
<expiration>1134616208</expiration>
</limits>
<permissions>
<create_domains>true</create_domains>
<manage_phosting>true</manage_phosting>
<manage_quota>false</manage_quota>
<manage_subdomains>true</manage_subdomains>
<change_limits>true</change_limits>
<manage_dns>true</manage_dns>
<manage_log>true</manage_log>
<manage_anonftp>true</manage_anonftp>
<manage_webapps>true</manage_webapps>
<manage_sh_access>true</manage_sh_access>
<manage_maillists>true</manage_maillists>
<make_dumps>true</make_dumps>
<remote_access_interface>true</remote_access_interface>
<cp_access>true</cp_access>
<manage_domain_aliases>true</manage_domain_aliases>
</permissions>
</add>
</client>
</packet>
</cfxml>



<cfhttp method="post" url="https://mydomain.com:8443/enterprise/control/agent.php" username="#LOGIN#" password="#PASSWD#">
<cfhttpparam type="xml" name="REQUEST" value="#xmlSend#">
<cfhttpparam type="header" name="HTTP_AUTH_LOGIN" value="#LOGIN#">
<cfhttpparam type="header" name="HTTP_AUTH_PASSWD" value="#PASSWD#">
<cfhttpparam type="header" name="HTTP_PRETTY_PRINT" value="TRUE">
<cfhttpparam type="header" name="Content-Type" value="text/xml">
</cfhttp>


<html>
<head>
<title>Test</title>
</head>
<body>
FileContent: <cfoutput>#cfhttp.FileContent#<br>#cfhttp.errordetail#</cfoutput>
</body>
</html>
 
Do you need to set the login and password both

<cfhttp method="post" url="https://mydomain.com:8443/enterprise/control/agent.php" username="#LOGIN#" password="#PASSWD#">

and in the header? I think just in the header should be ok.

Can you make the page with the same packet work in php or asp or .net or perl?

If so, does it work under those instead? if it does, then that will tell you that some thing in CF isnt working the way you think it should.

I know that doesnt solve your issue, ubt may give you a starting point.

Good luck!
 
Back
Top