Quote:
Originally Posted by sldff3ald
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?