[PHP] Re: HTTP Authentication

2008-11-19 Thread Nathan Rixham
Thiago H. Pojda wrote: Guys, I have to access a WS that uses HTTP auth directly with PHP. I've tried using the usual http://user:[EMAIL PROTECTED]/ but I couldn't get it working. I believe it has something to do with the password containing a # (can't change it) and the browser thinks it's an a

Re: [PHP] Re: http authentication with safe mode enabled?!

2005-03-23 Thread Roman Stöckl-Schmidt
Richard Lynch wrote: > You can always add more .htaccess files in more directories, or edit the > one that's there. And that's precisely what I did. The only reason why I only have .htaccess in the top-level directory is that I don't have any directives specific to one subdomain that the others sho

Re: [PHP] Re: http authentication with safe mode enabled?!

2005-03-21 Thread Richard Lynch
> I have no idea what to do to deal with this. There is only one .htaccess > file, which is in the top-level directory of my account with my ISP. And > I've even put You can always add more .htaccess files in more directories, or edit the one that's there. > AuthType None > > in there, but it doe

[PHP] Re: http authentication with safe mode enabled?!

2005-03-20 Thread LacaK
Yes, documentation says : "If safe mode is enabled, the uid of the script is added to the realm part of the WWW-Authenticate header. " and second : "The HTTP Authentication hooks in PHP are only available when it is running as an Apache module and is hence not available in the CGI version" and als

[PHP] Re: http authentication with safe mode enabled?!

2005-03-20 Thread Roman Stöckl-Schmidt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 LacaK wrote on 20.03.2005 19:13: | Hello Roman, | yes if safe_mode=on then | Authorization header is hidden from phpinfo() and apache_request_headers(), | | but variables $_SERVER["PHP_AUTH_USER"] and "PHP_AUTH_PW" | are set , when Basic authorization

[PHP] Re: http authentication with safe mode enabled?!

2005-03-20 Thread LacaK
Hello Roman, yes if safe_mode=on then Authorization header is hidden from phpinfo() and apache_request_headers(), but variables $_SERVER["PHP_AUTH_USER"] and "PHP_AUTH_PW" are set , when Basic authorization is used ! (it works in my configuration of Apache and PHP) Problem may be in Apache . Whe

[PHP] Re: http authentication through PHP

2004-01-10 Thread Manuel Lemos
Hello, On 01/10/2004 06:01 PM, Scott Taylor wrote: What is the easiest way to access a page that is protected by HTTP basic authentication through PHP? In other words, I have a PHP page that will get the username and password off a database and will then login through HTTP authentication to ac

[PHP] Re: HTTP Authentication thru PHP

2003-11-19 Thread Manuel Lemos
Hello, On 11/19/2003 12:30 PM, Chandu Nannapaneni wrote: hello all , I'm able to get successfully http authenticated from my php scripts Ex : $header = "POST /myscript.php HTTP/1.0\r\nAuthorization: Basic "; $header .= base64_encode("$username:$password")."\r\n"; $header .= "Content-

[PHP] Re: HTTP Authentication thru PHP

2003-11-19 Thread pete M
its probably because its possible to authenticate with an url ? eg http://name:[EMAIL PROTECTED] Chandu Nannapaneni wrote: hello all , I'm able to get successfully http authenticated from my php scripts Ex : $header = "POST /myscript.php HTTP/1.0\r\nAuthorization: Basic "; $header .=

[PHP] Re: HTTP Authentication / Logging Out

2001-10-01 Thread Chris Lee
php is serverside, PHP_AUTH_USER is set by the client, therfore when you unset() the serverside instance of PHP_AUTH_USER the client doesnt know about this and keeps sending the username/pass. the only way I know of is to re-send the http auth headers and change the domain. this works for me.

[PHP] Re: HTTP authentication

2001-08-31 Thread Richard Lynch
Change the realm out from under them. IE, keep a dynamic list of "Realm" values to use, and when you want to re-authenticate, present a new, unused "Realm" -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-

[PHP] Re: HTTP Authentication

2001-08-15 Thread Richard Lynch
> I am using PHP to send a header to the browser requestiing authentication. > On a successful login i am tracking inactivity by the client and want to > expire the login once a timeout period is reached. Problem is if the session > expires and the user just refreshes then the orignal login detail

[PHP] Re: HTTP Authentication and PHP

2001-07-22 Thread Balaji Ankem
Hi,   I am attaching one example program. I hope this will help you a lot.   Regards -Balaji   Hi all,>> I've been playing around with PHP authentication via HTTP.>> I'm using apache, and when i use the header('WWW_Auth...)>> headers i get a username/password dialog pop up (as i wanted).>> H

[PHP] Re: HTTP Authentication and PHP

2001-07-22 Thread elias
Try this when you want to logout: //elias "Jason Rennie" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > I've been playing around with PHP authentication via HTTP. > > I'm using apache, and when i use the header('WWW_Auth...) > > headers i get a