corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Any Javascript bods here?


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Any Javascript bods here?
Nismo
Member

Registered: 12th Sep 02
User status: Offline
29th Jan 10 at 13:40   View User's Profile U2U Member Reply With Quote

Im after a javascript bod to do a tiny it of coding for me.

I basicly have a script that connects to cameras and pulls the jpg feed direct from the camera, but i need the script to pass the user name and password for the camera (basic auth)

Anyone think they could sort it?

ed
Member

Registered: 10th Sep 03
User status: Offline
30th Jan 10 at 10:56   View User's Profile U2U Member Reply With Quote

It's fairly simple if it's http authentication. I believe you write the URL in this format:

http://usernameassword@url.com/image.jpg

I think you could even do a mod_rewrite to hide the username and pass.
Nismo
Member

Registered: 12th Sep 02
User status: Offline
31st Jan 10 at 11:26   View User's Profile U2U Member Reply With Quote

Yeah that was an option but IE blocks http auth with ie7 & 8 , you can get around it with a reg hack but not really what I want to do!
ed
Member

Registered: 10th Sep 03
User status: Offline
31st Jan 10 at 17:53   View User's Profile U2U Member Reply With Quote

Does your webcam not store the image in a non-protected folder anywhere? I know with ours when I've done similar I've found the image located on the cam's web server and got at it with no authentication.

I suppose another method would be to 'hack' into the webcam's server and get rid of the .htaccess entry which is protecting the folder with the image in it.
Nismo
Member

Registered: 12th Sep 02
User status: Offline
31st Jan 10 at 18:23   View User's Profile U2U Member Reply With Quote

No i need to keep authentication on it as its surveillance cameras otherwise id just use the guest account.
ed
Member

Registered: 10th Sep 03
User status: Offline
31st Jan 10 at 19:56   View User's Profile U2U Member Reply With Quote

You could make a page for the image and use PHP or something to handle the authentication?

http://php.net/manual/en/features.http-auth.php

I don't think you can do what you want to do with plain Javascript though...

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
The new VX220 TURBO!! Chris P General Chat 42 2751
20th Apr 03 at 21:25
by paul_spurrell
 
Calling all alloy wheels bods or semi bods ROBSTA General Chat 5 1105
22nd Apr 04 at 17:27
by Ian
 
bit of coding for a webpage Tantastic Geek Day 4 678
22nd Feb 07 at 23:31
by Tantastic
 
Javascript function changing css? Rus Geek Day 1 655
22nd Jun 07 at 10:53
by Rus
 
Irmsher airdam Corsa_Quadz Help Zone, Modification and ICE Advice 3 489
6th Mar 08 at 07:59
by Fonz
 

Corsa Sport » Message Board » Off Day » Geek Day » Any Javascript bods here? 28 database queries in 0.0164962 seconds