api-examples
api-examples copied to clipboard
Getting error "Authentication method not specified" when trying samples
When I attempt to make a request to the Plesk XML API, i get the following error:
<?xml version="1.0"?>
<packet version="1.6.9.1">
<system>
<status>error</status>
<errcode>1029</errcode>
<errtext>Authentication method is not specified</errtext>
</system>
</packet>
My Request looks like this:
<packet>
<customer>
<get>
<filter />
<dataset>
<gen_info/>
<stat/>
</dataset>
</get>
</customer>
</packet>
And I am setting the following headers:
- HTTP_AUTH_LOGIN
- HTTP_AUTH_PASSWORD
- Content-Type
Am I missing something?
Having the same issue,