Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Login via ASP 1

Status
Not open for further replies.

davepruce

Programmer
Dec 18, 2001
17
0
0
GB
Hi
Actual problem is I want to login to a Networked Axis 2100 Camera automatically from a web page.
We have all our cameras covered with logins and passwords into the builtin servers, but I now need to have a page that simply displays the current picture.
I dont seem to be able to find a way to pass the login and password using ASP. Its all totally secure because its our protected intranet.
Any help gratefully accepted
Cheers
Dave
 
Dave,

This is the syntax for sending username/password through a URL:


I don't know exactly how you are connecting to the camera but you could probably use XMLHTTP object. Something like this:

Code:
URL = "[URL unfurl="true"]http://username:password@server/resource.ext"[/URL]
'create the xmlhttp object
Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")   
'use the open command to get the url
objXMLHTTP.Open "GET", URL, false   
objXMLHTTP.Send
Ctext = objXMLHTTP.responseText
' then output it all.
response.write Ctext

I've never tried this but it's worth a shot. If this doesn't work then tell me how you connect to the camera normally and I'll try to adapt the code to that.


Travis Hawkins
BeachBum Software
travis@cfm2asp.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top