LogicMachine Forum
AXIS VAPIX Virtual input via http request - Printable Version

+- LogicMachine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: AXIS VAPIX Virtual input via http request (/showthread.php?tid=4841)



AXIS VAPIX Virtual input via http request - tom77 - 23.06.2023

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



RE: AXIS VAPIX Virtual input via http request - admin - 23.06.2023

You might need to use digest auth. See this example: https://forum.logicmachine.net/showthread.php?tid=1061&pid=9364#pid9364


RE: AXIS VAPIX Virtual input via http request - tom77 - 23.06.2023

Thank you, that worked