url with passwords doesn't work for me

Posted on
Wed Oct 03, 2018 8:16 pm
peszko offline
Posts: 20
Joined: Mar 07, 2012

url with passwords doesn't work for me

Hello,

I'm trying to access Hikvision NVR to get its camera's images. The URLs work in Indigo directly, but not through this plugin. I use the format:

http://username:password@nvrip/ISAPI/St ... 01/picture

This works when used in indigo in the refreshing image url controll, but I get a 401 with the plugin.

Any help appreciated.

Posted on
Sat Oct 06, 2018 7:44 am
peszko offline
Posts: 20
Joined: Mar 07, 2012

Re: url with passwords doesn't work for me

Hello,

Ok I fixed my problem. The issue is that my NVR was expecting digest authentication and this plugin doesn't support it.

So there are two solutions, turn off digest authentication or modify the plugin. Sine, I think digest is a better choice, I modified the plugin.

I changed the request as follows:

r = requests.get(url, stream=True, timeout=100, auth=HTTPDigestAuth(parsed.username, parsed.password))

You still need to import the HTTPDigestAuth

from requests.auth import HTTPDigestAuth

Possibly the author could add support for couple most used authentication methods.

Thanks.

Posted on
Tue Oct 09, 2018 10:24 am
vtmikel offline
Posts: 358
Joined: Aug 31, 2012
Location: Boston, MA

Re: url with passwords doesn't work for me

Thanks, I'll add this to my list to do.

Posted on
Sun Nov 25, 2018 4:01 pm
vtmikel offline
Posts: 358
Joined: Aug 31, 2012
Location: Boston, MA

Re: url with passwords doesn't work for me

Just to confirm, this is a general URL download and not SecuritySpy, correct? I dont think SecuritySpy supports Digest.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest