Trigger event with username and password (Axis)

Forum All about Webcams, IP Camera's & Camera's (hardware, software, pan tilt zoom etc).

Moderator: Esteban

Post Reply
Herbus
Member
Member
Posts: 363
Joined: Mon Mar 27, 2006 12:28 pm
Location: Netherlands

Trigger event with username and password (Axis)

Post 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
Herbus (Jos)
Esteban
Forum Moderator
Forum Moderator
Posts: 677
Joined: Sun Jan 13, 2008 6:39 pm
Location: Netherlands

Re: Trigger event with username and password (Axis)

Post 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
User avatar
Rene
Global Moderator
Global Moderator
Posts: 1689
Joined: Wed Oct 08, 2008 3:54 pm
Location: Netherlands

Re: Trigger event with username and password (Axis)

Post by Rene »

I use the NetworkCredential class in my plugins. See msdn.microsoft.com/en-us/library/system ... ntial.aspx.
Rene.
Herbus
Member
Member
Posts: 363
Joined: Mon Mar 27, 2006 12:28 pm
Location: Netherlands

Re: Trigger event with username and password (Axis)

Post by Herbus »

Thanks guys. Still writing the code but a little step closer to the final solution.
Herbus (Jos)
Post Reply

Return to “Webcams & Camera Stuff Forum”