The documentation tells you not to do this and to use another method. Try using this widget instead.
As mentioned the 401 replies back from the camera can be normal if the camera is using digest auth so it may be that the default URL is fine and does not need over riding.