Re: http authentication through PHP
| From: | Chris Shiflett | Date: | Sat, 10 Jan 2004 20:27:31 +0000 |
| Subject: | Re: http authentication through PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174221@lists.php.net to get a copy of this message | ||
--- Scott Taylor <scotttaylor@bigfoot.com> wrote:
> What is the easiest way to access a page that is protected by HTTP
> basic authentication through PHP?
You should be able to indicate the username and password in the URL:
http://username:password@example.org/path/to/script.php
Hope that helps.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security Handbook
Coming mid-2004
HTTP Developer's Handbook
http://httphandbook.org/