diff --git a/src/Proxmox/Helper/Api.php b/src/Proxmox/Helper/Api.php index 48a2474..455ebac 100644 --- a/src/Proxmox/Helper/Api.php +++ b/src/Proxmox/Helper/Api.php @@ -181,7 +181,7 @@ public function getCSRFToken(): ?array 'verify' => false, 'debug' => $this->PVE->getDebug() ? fopen('php://stderr', 'w') : null, 'headers' => $this->defaultHeaders, - 'form_params' => [ + 'json' => [ 'username' => $this->PVE->getUsername(), 'password' => $this->PVE->getPassword(), 'realm' => $this->PVE->getAuthType(),