Posted on 2006-07-15 13:17:31-07 by timc
how to do sessions with http::proxy?
I have a simple need: for the proxy to ask who you are, and then to do something different depending on your ("logged in") identity. maybe i'm over-reaching, but it would be even better to have the capabilities delivered in a module such as CGI::Session. But, other than the ip addrs, how can client be made to talk to the proxy? I've ehard of something called NPH scripts, but don't know enough. Thanks!
Direct Responses: 2651 | Write a response
Posted on 2006-07-19 15:09:22-07 by book in response to 2627
Re: how to do sessions with http::proxy?
You could look at the example file eg/proxy-auth.pl which implements a simple password checker for the proxy. Once you've catched the username in your filter, you can store it in the proxy stash (with the proxy stash() method) and use it ofr your own purpose. HTH
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.