faqts : Computers : Programming : Languages : PHP : Common Problems : HTTP Headers

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

40 of 74 people (54%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

Can I use the header() function to pass a HTTP authentication user name and password?
Can I pass HTTP header parameters from the client browser to the server?

Jan 20th, 2000 00:12
Nathan Wallace, Trey McCallie, Richard Lynch


Using the header() function sets the HTTP headers for the HTTP response
that is sent from the server to the client browser.

The HTTP authentication variables need to be set by the browser and
passed to the server.  You cannot tell the browser what HTTP headers to
set and send, so you cannot set the username and password variables.

You may be able to set these variables automatically for the user by
including them in a POST or GET request the the user initiates to the
server.