How to view streams via JSON api without adding username/pw to http request

devastator

Getting the hang of it
May 22, 2015
169
28
Belgium
Hi,

I'm looking into the JSON api.

Is there a way to retrieve the video stream from a camera without adding the username & password in plain text to the http request ?

Br,
Devastator
 
If you use the JSON API's login command to get a session, you can include the session as an outgoing cookie named "session" or as a URL parameter named "session". It won't require sending the un/pw in plain text.

Alternatively you can whitelist certain IP addresses in the web server to give them automatic admin access.

Or you could use an HTTPS proxy server to make sure that everything touching the network is encrypted, if your concern is someone sniffing your credentials out of your web requests.