Page 1 of 1

Trigger event with username and password (Axis)

Posted: Thu Apr 28, 2011 10:55 pm
by Herbus
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

Re: Trigger event with username and password (Axis)

Posted: Sat Apr 30, 2011 8:38 am
by Esteban
This probably has to do with IE not supporting this kind of (usr:pw@ip) input anymore...

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)

Posted: Sat Apr 30, 2011 11:02 am
by Rene
I use the NetworkCredential class in my plugins. See msdn.microsoft.com/en-us/library/system ... ntial.aspx.

Re: Trigger event with username and password (Axis)

Posted: Tue May 03, 2011 12:17 pm
by Herbus
Thanks guys. Still writing the code but a little step closer to the final solution.