23.06.2023, 08:43
I'm trying to address a virtual input of an Axis intercom with the Bowser. Does the transfer of the login to the Logic machine work? Does the following error occur? Does anyone have any ideas?
Code:
http = require('socket.http')
url = 'https://root:Password@192.168.2.98/axis-cgi/virtualinput/activate.cgi?schemaversion=1&port=1'
res, err = http.request(url)
log(res, err)
Code:
* arg: 1
* string: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Unauthorized</title>
</head><body>
<h1>Unauthorized</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
</body></html>
* arg: 2
* number: 401