How to run XML API request to Plesk on Windows platform?

Created:

2017-08-10 09:22:50 UTC

Modified:

2017-08-16 17:07:35 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to run XML API request to Plesk on Windows platform?

Applicable to:

  • Plesk for Windows

Question

How to run XML API request to Plesk on Windows platform?

Answer

  1. Download curl executable using curl Download Wizard
  2. Extract the downloaded archive and find curl.exe executable in src/ folder. It can be copied to some particular folder, e.g. C:/curl_api_request
  3. In the same folder create .xml file that contains XML API request that is developed in accordance to XML API Guide , e.g. request.xml
  4. Start command prompt as Windows administrator user, switch to the folder where curl.exe and .xml request files are stored and execute the following query:

    C:\> cd C:/curl_api_request
    C:\> curl -k -d @request.xml -H "Content-type: text/xml" -H "HTTP_PRETTY_PRINT: TRUE" -H "HTTP_AUTH_LOGIN: admin" -H "HTTP_AUTH_PASSWD: PLESK_ADMIN_PASSWORD" https://PLESK_SERVER_IP:8443/enterprise/control/agent.php

    where PLESK_ADMIN_PASSWORD is the password for Plesk admin user and PLESK_SERVER_IP - IP address of Plesk server

Have more questions? Submit a request
Please sign in to leave a comment.