Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Authorization question
May 12, 2005, 4:11 am
rate this thread
which, when I receive a page request with an empty authorized user and
password, I issue a 401 response that pops up the userid/password
prompt on the user's browser. I would like to do some server-side
processing when they click OK on that - how can I detect that the
request I'm receiving is from that prompt? Is there something unique
about it that I can detect?
Re: Authorization question
No, you can only detect that someone is using basic authentication, how they
told their browser to send their credentials is impossible to detect.
How you get that information on the server rather depends on the language
and libraries you are working with, most come with some built in way to get
the username and password.
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/
Home is where the ~/.bashrc is