Page 1 of 1

json commands protected

Posted: Friday 12 October 2018 15:58
by maximaxi
I ask for help
version of domoticz V4.9700
Chrome browser
domoticz, settings, site protection, login page
Also this time it is probable that I am losing myself in a glass of water
I can not send protected Json HTTP commands with user and password
I followed the documentation but I never get anything done
401 Unauthorized
if I open a window in the browser and I log in with domoticz it works correctly

the command I use as an example and this
____http://massimo:[email protected]:8080/json.htm?type=command&param=getlightswitches_____
someone can help me Thanks

Re: json commands protected

Posted: Friday 12 October 2018 16:09
by emme
Have you setted BASIC-AUTH in the Protection settings?
Cattura-1.jpg
Cattura-1.jpg (27.79 KiB) Viewed 384 times

Re: json commands protected

Posted: Friday 12 October 2018 16:22
by maximaxi
Thank you
Resolved
I imagined losing myself in a glass of water ;)