Hi,
I want to use the command:
"http://192.168.1.51/axis-cgi/io/virtual ... action=6:/" to trigger an event that starts a ftp transfer of jpg's from my Axis M3113.
It doesn't work because the browser askes for a username/password. (works ok if the un/pw are used in the browser)
I've tried:
"http://username:password@192.168.1.51/a ... action=6:/" but I get the message that this URL (MS IE) can't be find.
Any suggestions how I can start an event and include username/password? Homeseer has to send the trigger so .Net or VB6 is also ok.
Thanks,
Jos
Trigger event with username and password (Axis)
Moderator: Esteban
Trigger event with username and password (Axis)
Herbus (Jos)
Re: Trigger event with username and password (Axis)
This probably has to do with IE not supporting this kind of (usr:pw@ip) input anymore...
Try using something along these lines:
Try using something along these lines:
Code: Select all
Dim xmlhttp
set xmlhttp = createobject("microsoft.xmlhttp")
xmlhttp.open "get","http://usr:pw@ip/axis-cgi/io/virtualinput.cgi?blablabla"
xmlhttp.setrequestheader "Pragma","no-cache"
xmlhttp.setrequestheader "Cache-control","no-cache"
xmlhttp.send
Re: Trigger event with username and password (Axis)
I use the NetworkCredential class in my plugins. See msdn.microsoft.com/en-us/library/system ... ntial.aspx.
Rene.
Re: Trigger event with username and password (Axis)
Thanks guys. Still writing the code but a little step closer to the final solution.
Herbus (Jos)