From cf7163bc62aa4d076d087daada01b2ff1f413254 Mon Sep 17 00:00:00 2001 From: jpawlowski Date: Mon, 20 Mar 2017 17:00:08 +0000 Subject: [PATCH] 50_HP1000: add some HttpUtils_NonblockingGet() settings git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@13749 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/50_HP1000.pm | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/FHEM/50_HP1000.pm b/FHEM/50_HP1000.pm index fedadc427..af97bc626 100755 --- a/FHEM/50_HP1000.pm +++ b/FHEM/50_HP1000.pm @@ -1239,13 +1239,21 @@ sub HP1000_PushSrv($$) { HttpUtils_NonblockingGet( { - url => $srv_url . $cmd, - timeout => $timeout, - noshutdown => $http_noshutdown, - data => undef, - hash => $hash, + url => $srv_url . $cmd, + timeout => $timeout, + noshutdown => $http_noshutdown, + data => undef, + hash => $hash, + callback => \&HP1000_ReturnSrv, httpversion => "1.1", - callback => \&HP1000_ReturnSrv, + loglevel => AttrVal( $name, "httpLoglevel", 5 ), + header => { + Agent => 'FHEM-HP1000/1.0.0', + 'User-Agent' => 'FHEM-HP1000/1.0.0', + }, + sslargs => { + SSL_verify_mode => 0, + }, } ); @@ -1327,12 +1335,18 @@ sub HP1000_PushWU($$) { HttpUtils_NonblockingGet( { - url => $wu_url . $cmd, - timeout => $timeout, - noshutdown => $http_noshutdown, - data => undef, - hash => $hash, - callback => \&HP1000_ReturnWU, + url => $wu_url . $cmd, + timeout => $timeout, + noshutdown => $http_noshutdown, + data => undef, + hash => $hash, + callback => \&HP1000_ReturnWU, + httpversion => "1.1", + loglevel => AttrVal( $name, "httpLoglevel", 5 ), + header => { + Agent => 'FHEM-HP1000/1.0.0', + 'User-Agent' => 'FHEM-HP1000/1.0.0', + }, } );