- Plesk for Windows
How to run XML API request to Plesk on Windows platform?
- Download curl executable using curl Download Wizard
Extract the downloaded archive and find
src/folder. It can be copied to some particular folder, e.g.
In the same folder create
.xmlfile that contains XML API request that is developed in accordance to XML API Guide , e.g.
Start command prompt as Windows administrator user, switch to the folder where
.xmlrequest 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
PLESK_ADMIN_PASSWORDis the password for Plesk admin user and
PLESK_SERVER_IP- IP address of Plesk server