Post auch für zweiten api befehl eingesetzt.

This commit is contained in:
2024-12-19 14:05:25 +01:00
parent ff9d9b8909
commit 6c88777df5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -325,7 +325,7 @@ class Ladestation_Universal extends IPSModule
}elseif($this->ReadPropertyInteger("Ladestation")==3){
$url = $baseUrl . "0";
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, $this->ReadPropertyString("Username") . ":" . $this->ReadPropertyString("Password"));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);