2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +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:
jpawlowski 2017-03-20 17:07:47 +00:00
parent acb4c7134c
commit d8951d4cc8

View File

@ -968,16 +968,26 @@ sub ENIGMA2_SendCommand($$;$$) {
HttpUtils_NonblockingGet(
{
url => $URL,
timeout => $timeout,
noshutdown => $http_noshutdown,
data => undef,
hash => $hash,
service => $service,
cmd => $cmd,
type => $type,
callback => \&ENIGMA2_ReceiveCommand,
url => $URL,
timeout => $timeout,
noshutdown => $http_noshutdown,
data => undef,
hash => $hash,
service => $service,
cmd => $cmd,
type => $type,
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,
},
}
);
@ -995,15 +1005,26 @@ sub ENIGMA2_SendCommand($$;$$) {
HttpUtils_NonblockingGet(
{
url => $URL,
timeout => $timeout,
noshutdown => $http_noshutdown,
data => $cmd,
hash => $hash,
service => $service,
cmd => $cmd,
type => $type,
callback => \&ENIGMA2_ReceiveCommand,
url => $URL,
timeout => $timeout,
noshutdown => $http_noshutdown,
data => $cmd,
hash => $hash,
service => $service,
cmd => $cmd,
type => $type,
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,
},
}
);
}