• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Plesk RPC API example in ColdFusion

M

mattypython

Guest
Hi there, I'm trying to get the php/perl RPC API example working in ColdFusion and I keep getting an error of "Connection Failure", can someone see what the problem is?

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

<cfxml variable="xmlSend">
<packet version="1.3.1.0">
	<server>
		<get>
			<gen_info/>
		</get>
	</server>
</packet>
</cfxml>

<cfhttp method="post" url="https://pl1.demo.sw-soft.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#</cfoutput>
</body>
</html>

Thanks in advance for your help.
 
Back
Top