plesk/api-examples

Getting error "Authentication method not specified" when trying samples

Opened this issue · 1 comments

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:

  1. HTTP_AUTH_LOGIN
  2. HTTP_AUTH_PASSWORD
  3. Content-Type

Am I missing something?

Tolfx commented

Having the same issue,