authentification in url not working ?

pgh
pgh
edited February 2021 in SecuritySpy
Hello,

I'm trying to access some cams from a web page.
I use the following syntax in my html code:

img src="user:pass@xxx.mydomain.com:8001/++video?cameraNum=1&width=320&height=200&req_fps=2"

But it doesn't work, just an empty placeholder (it works with zoneminder)

in Safari or Chrome
http://user:pass@xxx.mydomain.com:8001/++video?cameraNum=0&width=320&height=200&req_fps=2

keep asking user and password.

Any help ?

Thanks !

Comments

  • This is the correct formulation - I assume you have double-checked the username/password?

    The problem could be that this method is seen as insecure and therefore blocked by some web browsers. As an alternative, I suggest that you use the "auth" parameter method described in the "Authentication in URL" section of the Web Server Specification document.
  • pgh
    pgh
    edited February 2021
    Edit: working with the auth parameter, thanks !!!!