PDA

View Full Version : Access Deny


koldstar
07-28-2011, 03:04 PM
Hi

I'm trying to do some tasks using the API but I have ran into a problem: It works fine when i execute my command through the URL in the browser, but when I try to run it from my PHP script I get the error: "Access Deny"

The script is running on the main domain on the same server as ISPmanager. Do I have to allow the script access somewhere?

vian
07-28-2011, 03:51 PM
It happens because you have to authorize on a server. To do it use parameter "authinfo=user:pass"

koldstar
07-28-2011, 04:14 PM
Thanks.

I already got it in the URL and I just found out that it works with the root user. What I really like is to use a Resseller acount for athentication. Is that posible?

slava
07-28-2011, 06:29 PM
What command you can't run as reseller? Please show API URL string.