RE: [PHP] authorization headers
| From: | John Holmes | Date: | Fri, 26 Apr 2002 01:47:53 +0000 |
| Subject: | RE: [PHP] authorization headers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94684@lists.php.net to get a copy of this message | ||
Couldn't you use something like this:
header("Location: http://user:pass@www.domain.com/path/to/file.php");
---John Holmes...
> -----Original Message-----
> From: webmaster@blanktv.com [mailto:webmaster@blanktv.com]
> Sent: Thursday, April 25, 2002 11:11 AM
> To: php-general@lists.php.net
> Subject: [PHP] authorization headers
>
> does anybody know how to pass the correct username and password as a
> header
> to a directory with an .htaccess file.
>
> i tried
>
> header("Authorization: Basic username:password");
>
> like that and also where the username:password was base 64 encoded and
> it
> isn't working.
>
> thanks.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php