Thread

Posted on Sat Jul 15 16:17:31 2006 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 Wed Jul 19 18:09:22 2006 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
Write a response