well it might be both ...
10.7 only supports open SSL v 1.0.x (which is used by the installed python/requests) .. newer web servers require higher level SSL.. thats why I added cURL.
try: curl -V to get the installed cUrl version
If you have a newer MAC / laptop ( eg sierra) try
- Code: Select all
/usr/bin/curl --insecure -c /tmp/nvrCookie --data '{"username": "xxx", "password": "xxx"}' https://192.168.9.35:7443/api/login
there . If that works its the MAC if not its the NVR
you might want to reinstall curl (a newer version .. comes with its own SSSL libs) on you mac :
https://simonecarletti.com/blog/2016/01/http2-curl-macosx/ but that will install cURL in /usr/local/bin/curl .. but we can add that option to point there
when / if you have installed a newer version of curl try:
- Code: Select all
/usr/local/bin/curl--insecure -c /tmp/nvrCookie --data '{"username": "xxx", "password": "xxx"}' https://192.168.9.35:7443/api/login