I have a couple year old 5241 Z12 serving as a license plate camera. It periodically goes out of focus after the day/night configuration change triggered via Blue Iris. I am attempting to write a PowerShell script to query the camera’s focus setting and notify me if the value is incorrect.
I can successfully query the camera using a web browser and the calll, and have it return the status. When I insert the exact same (and I know there’s no typos because I tested it using copy/paste) URL into the PowerShell Invoke-WebRequest call, I get a 401 Unauthorized error.
I had assumed the camera’s server would not know the difference between the request coming from a browser or PowerShell, but apparently there is a difference. Any suggestions?
I can successfully query the camera using a web browser and the calll, and have it return the status. When I insert the exact same (and I know there’s no typos because I tested it using copy/paste) URL into the PowerShell Invoke-WebRequest call, I get a 401 Unauthorized error.
I had assumed the camera’s server would not know the difference between the request coming from a browser or PowerShell, but apparently there is a difference. Any suggestions?