[thelist] send HTTP authentication from PHP page?
Michal Migurski
mike at teczno.com
Mon Oct 11 13:32:20 CDT 2004
> Hi all, does anyone know if is possible for a PHP page to send the
> correct headers to login to another page that requires HTTP
> authentication? I am trying to connect our intranet site automatically
> to our webmail Exchange server, which requires HTTP authentication.
> Thanks!
See "2. Basic Authentication Scheme" at
http://www.faqs.org/rfcs/rfc2617.html
In your request headers, send the following:
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
...where that gobbbledygook at the end is "username:password" in base64.
------------------------------------------------------
michal migurski- contact info, blog, and pgp key:
sf/ca http://mike.teczno.com/contact.html
More information about the thelist
mailing list