skip to Main Content

Unusual HTTP headers in the Plesk API

The documentation for the Plesk API* gives the following cURL function. function curlInit($host, $login, $password) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "https://{$host}:8443/enterprise/control/agent.php"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTPHEADER, array("HTTP_AUTH_LOGIN: {$login}", "HTTP_AUTH_PASSWD: {$password}",…

VIEW QUESTION

basedir issue, am I reading this right? – Plesk

Warning: touch() [function.touch]: open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/vhosts/site.com/httpdocs/) in /var/www/vhosts/site.com/httpdocs/Manuals/updater.php on line 5 There was an error loading your Manual, please press the back button and try again. im trying to figure out…

VIEW QUESTION
Back To Top
Search