Re: [PHP] reverse http authentication

2007-02-20 Thread Richard Lynch
On Fri, February 16, 2007 4:38 pm, Chris W wrote:
 I want to read a page that is protected with http authentication.  How
 do I pass the user name and password to be authenticated with my php
 code?

If you can't get http://username:[EMAIL PROTECTED] to work, try
http://php.net/curl

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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



Re: [PHP] reverse http authentication

2007-02-18 Thread Travis Doherty
Chris W wrote:

 I want to read a page that is protected with http authentication.  How
 do I pass the user name and password to be authenticated with my php
 code?

Have you tried to just put the username and password in the URL?  I'm
not sure if this works, its so simple its worth a try.  Instead of using
(whatever function you use) like the first example try changing it like
the second:

x('http://example.com/protected/page.php');
x('http://username:[EMAIL PROTECTED]/protected/page.php');

Of course it depends on the 'x' you are using...  I'm really not sure if
PHP's functions will take care of moving that username/password
information into the header of the HTTP request or just leave it there.

Travis Doherty

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



[PHP] reverse http authentication

2007-02-16 Thread Chris W
I want to read a page that is protected with http authentication.  How 
do I pass the user name and password to be authenticated with my php code?


--
Chris W
KE5GIX

Protect your digital freedom and privacy, eliminate DRM, 
learn more at http://www.defectivebydesign.org/what_is_drm;


Gift Giving Made Easy
Get the gifts you want  
give the gifts they want
One stop wish list for any gift, 
from anywhere, for any occasion!

http://thewishzone.com

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