mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
70_ENIGMA2: add some HttpUtils_NonblockingGet() settings
git-svn-id: https://svn.fhem.de/fhem/trunk@13751 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
acb4c7134c
commit
d8951d4cc8
@ -968,16 +968,26 @@ sub ENIGMA2_SendCommand($$;$$) {
|
|||||||
|
|
||||||
HttpUtils_NonblockingGet(
|
HttpUtils_NonblockingGet(
|
||||||
{
|
{
|
||||||
url => $URL,
|
url => $URL,
|
||||||
timeout => $timeout,
|
timeout => $timeout,
|
||||||
noshutdown => $http_noshutdown,
|
noshutdown => $http_noshutdown,
|
||||||
data => undef,
|
data => undef,
|
||||||
hash => $hash,
|
hash => $hash,
|
||||||
service => $service,
|
service => $service,
|
||||||
cmd => $cmd,
|
cmd => $cmd,
|
||||||
type => $type,
|
type => $type,
|
||||||
callback => \&ENIGMA2_ReceiveCommand,
|
callback => \&ENIGMA2_ReceiveCommand,
|
||||||
httpversion => "1.1",
|
httpversion => "1.1",
|
||||||
|
loglevel => AttrVal( $name, "httpLoglevel", 4 ),
|
||||||
|
header => {
|
||||||
|
Agent => 'FHEM-ENIGMA2/1.0.0',
|
||||||
|
'User-Agent' => 'FHEM-ENIGMA2/1.0.0',
|
||||||
|
Accept => 'text/xml;charset=UTF-8',
|
||||||
|
'Accept-Charset' => 'UTF-8',
|
||||||
|
},
|
||||||
|
sslargs => {
|
||||||
|
SSL_verify_mode => 0,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -995,15 +1005,26 @@ sub ENIGMA2_SendCommand($$;$$) {
|
|||||||
|
|
||||||
HttpUtils_NonblockingGet(
|
HttpUtils_NonblockingGet(
|
||||||
{
|
{
|
||||||
url => $URL,
|
url => $URL,
|
||||||
timeout => $timeout,
|
timeout => $timeout,
|
||||||
noshutdown => $http_noshutdown,
|
noshutdown => $http_noshutdown,
|
||||||
data => $cmd,
|
data => $cmd,
|
||||||
hash => $hash,
|
hash => $hash,
|
||||||
service => $service,
|
service => $service,
|
||||||
cmd => $cmd,
|
cmd => $cmd,
|
||||||
type => $type,
|
type => $type,
|
||||||
callback => \&ENIGMA2_ReceiveCommand,
|
callback => \&ENIGMA2_ReceiveCommand,
|
||||||
|
httpversion => "1.1",
|
||||||
|
loglevel => AttrVal( $name, "httpLoglevel", 4 ),
|
||||||
|
header => {
|
||||||
|
Agent => 'FHEM-ENIGMA2/1.0.0',
|
||||||
|
'User-Agent' => 'FHEM-ENIGMA2/1.0.0',
|
||||||
|
Accept => 'text/xml;charset=UTF-8',
|
||||||
|
'Accept-Charset' => 'UTF-8',
|
||||||
|
},
|
||||||
|
sslargs => {
|
||||||
|
SSL_verify_mode => 0,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user