[thelist] send HTTP authentication from PHP page?

sbeam sbeam at syxyz.net
Mon Oct 11 14:22:41 CDT 2004


On Monday 11 October 2004 02:32 pm, Michal Migurski wrote:
> > 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.

Need not reinvent the wheel yet again. And save yourself the headache, 
those RFCs are boooorrrrrringggg.....
http://pear.php.net/package/HTTP_Request

-- 

# S Beam - Web App Dev Servs
# http://www.onsetcorps.net/


More information about the thelist mailing list