Hi, I am trying to implement start/stop recording schedule of specific camera in my application. I followed the directions in one of the support forms like below: Created the Ajax request object and added saveCameraAttributes URL with Post JSON . I am getting still 401 unauthrized error. I am able to export/view the archive of the camera passing auth parameter(with base64 encoded value - it didn't require to enter username/password) in the URL. But not able to implement start/stop recording schedule. Please let me what am i missing to use this feature with passing authorization to avoid 401 error.
var xmlHttp = new XMLHttpRequest();
xmlHttp.setRequestHeader('Authorization', 'Basic=(username, password)' );
Please sign in to leave a comment.