array( 'header' => "Content-type: application/x-www-form-urlencoded\r\nAuthorization: Basic $auth\r\n", 'method' => 'POST', 'content' => http_build_query($data) ), 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true ) ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); if ($result === FALSE) { exit("Error backing up server."); } echo $result; ?>