RE: [PHP] Re: Automatically send auth info

2004-05-12 Thread motorpsychkill
 Are you using a web form?  You can just grab the values from the form if
 that's the case.  But I suppose that you are not doing that, so you
 could just add some variables for username / password as part of the
 query string.  Just realize, you're now sending login info in plain text!

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

No, it's not a web form.  I'm trying to include an IP addressed video camera
into my webpage.  The problem is that the video camera is password protected
using htaccess.  I don't have the option to remove the password.

I tried looking through the PEAR auth libraries but I didn't find anything
that *passed* authentication info, but only prompted for it, etc.

I thought there would be a class that would allow me to send the username
and password to a website and then include it, something like the following
pseudo-code:

?php

$crap = new get_website();
$crap-website_address(http://127.0.0.1;);
$crap-website_username(joe);
$crap-website_password(shmoe);
$crap-retune_website();


?

The camera used to be accessible with:

http://joe:[EMAIL PROTECTED]

But it is no longer available via Internet Explorer since the new MS
security updates on most windows boxes.

Thanks again.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Automatically send auth info

2004-05-12 Thread jon roig
I may be mistaken, but I think you can use CURL to grab that data. Check
out the options available here:

http://us3.php.net/manual/en/function.curl-setopt.php

In particular, you may want to look at CURLOPT_USERPWD


- jon roig

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.668 / Virus Database: 430 - Release Date: 4/24/2004
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php