View Single Post
  #2 (permalink)  
Old 09-18-2007, 08:27 AM
cPanelDavidG's Avatar
cPanelDavidG cPanelDavidG is offline
cPanel Technical Sales
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 8,117
cPanelDavidG is on a distinguished road
Quote:
Originally Posted by sldff3ald View Post
I'm trying to use the XML API with cPanel 11 (xml-api/applist). I believe I've tried every permutation of hostname/IP, port, and protocol and I either get internal server errors or a login page, but no XML. My shared host didn't have a clue. I'm trying to test this out on my shared host for deployment by someone else, but this should work if they have cPanel 11, right? Is there something my host would have to do to enable the XML API? Is there a tried-and-true way to determine the correct URL to use?

The methods I tried are the ones given here:

Creating Reseller Accounts using PHP?
WHM Interface class
cPanel URL Login
First, you must have a reseller account to use the XML-API and the server must be running cPanel 11 (not 10).

The login screen is typically the result of failed authentication. This could be anything from not encoding user/pass in the sending headers, using the improper user/pass in https://user:pass@...:2087/xml-api/applist and so forth.

Perhaps post some sample code so everyone here can analyze what may be going wrong?
__________________
Need technical assistance? You can find your best avenue for support at: http://support.cPanel.net
-- cPanel David G., Lead Forum Administrator & cPanel Technical Sales Representative

Last edited by cPanelDavidG; 09-18-2007 at 08:27 AM. Reason: Disabled Smilies
Reply With Quote