mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
ENIGMA2: do HTTP POST and HTTP GET in parallel to support old WebIf versions
git-svn-id: https://svn.fhem.de/fhem/trunk@4460 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3e183cde15
commit
4dd6e9b1e9
@ -1560,6 +1560,7 @@ sub ENIGMA2_SendCommand($$;$) {
|
||||
}
|
||||
else {
|
||||
Log3 $name, 4, "ENIGMA2 $name: REQ $service/" . urlDecode($cmd);
|
||||
$cmd = "?" . $cmd;
|
||||
}
|
||||
|
||||
if ( defined($http_user) && defined($http_passwd) ) {
|
||||
@ -1569,7 +1570,8 @@ sub ENIGMA2_SendCommand($$;$) {
|
||||
. $http_passwd . "@"
|
||||
. $address . ":"
|
||||
. $port . "/web/"
|
||||
. $service;
|
||||
. $service
|
||||
. $cmd;
|
||||
}
|
||||
elsif ( defined($http_user) ) {
|
||||
$URL =
|
||||
@ -1577,11 +1579,16 @@ sub ENIGMA2_SendCommand($$;$) {
|
||||
. $http_user . "@"
|
||||
. $address . ":"
|
||||
. $port . "/web/"
|
||||
. $service;
|
||||
. $service
|
||||
. $cmd;
|
||||
}
|
||||
else {
|
||||
$URL =
|
||||
$http_proto . "://" . $address . ":" . $port . "/web/" . $service;
|
||||
$http_proto . "://"
|
||||
. $address . ":"
|
||||
. $port . "/web/"
|
||||
. $service
|
||||
. $cmd;
|
||||
}
|
||||
|
||||
Log3 $name, 5, "ENIGMA2 $name: GET " . urlDecode($URL);
|
||||
|
Loading…
Reference in New Issue
Block a user