Article ID: 119512, created on Jan 8, 2014, last review on May 11, 2014

  • Applies to:
  • Plesk Automation 11.1

Symptoms

I am trying to integrate PPA with my own system using API methods, but getting the following error:

HTTP/1.1 401 Unauthorized

Cause

The issue is in packet structure or in your applications code.

Resolution

Please use simple curl request to check that API works fine:

curl -k  -d@test.xml https://admin:password@<PPA_IP_ADDRESS>:8440/RPC2

# cat test.xml
<?xml version="1.0"?>
<methodCall>
  <methodName>pem.getAccountInfo</methodName>
  <params>
    <param>
      <value>
        <struct>
          <member>
            <name>account_id</name>
            <value>
             <int>1</int>
           </value>
          </member>
        </struct>
      </value>
    </param>
  </params>
</methodCall>

Search Words

PPA API error 401

HTTP/1.1 401 Unauthorized

c1ecc6010feff26cb42d1d14a7881dd6 e0aff7830fa22f92062ee4db78133079 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF