mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
70_PHTV: explicit digest auth (HttpUtils patch pending)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@13473 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5d766cbebc
commit
2b37953206
@ -1566,7 +1566,7 @@ sub PHTV_SendCommand($$;$$$) {
|
|||||||
|
|
||||||
$URL = "http://";
|
$URL = "http://";
|
||||||
$URL = "https://" if ( $protoV > 5 || $address =~ m/^.+:1926$/ );
|
$URL = "https://" if ( $protoV > 5 || $address =~ m/^.+:1926$/ );
|
||||||
$URL .= "$auth@" if($auth);
|
$URL .= "$auth@" if ($auth);
|
||||||
$URL .= $address . "/" . $protoV . "/" . $service;
|
$URL .= $address . "/" . $protoV . "/" . $service;
|
||||||
|
|
||||||
$timeout = AttrVal( $name, "httpTimeout", AttrVal( $name, "timeout", 7 ) );
|
$timeout = AttrVal( $name, "httpTimeout", AttrVal( $name, "timeout", 7 ) );
|
||||||
@ -1585,6 +1585,7 @@ sub PHTV_SendCommand($$;$$$) {
|
|||||||
url => $URL,
|
url => $URL,
|
||||||
hideauth => 1,
|
hideauth => 1,
|
||||||
auth => $auth,
|
auth => $auth,
|
||||||
|
digest => 1,
|
||||||
timeout => $timeout,
|
timeout => $timeout,
|
||||||
data => $data,
|
data => $data,
|
||||||
hash => $hash,
|
hash => $hash,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user