|Just another Perl shrine|
automating basic authenticationby cLive ;-) (Prior)
|on Sep 13, 2003 at 09:16 UTC ( #291226=perlquestion: print w/replies, xml )||Need Help??|
cLive ;-) has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to write a proxy server that will automatically add basic authentication to a request to a particular host. I've been having a play with BooK's HTTP::Proxy, but can't seem to get it to work as expected. Here's the server:
So far, the proxy server works OK as far as other domains go. But, when I try to connect to the authentication server, I still get the enter password box.
Any suggestions on how to proceed?
I'm not 100% sure I'm doing this the right way either - the docs for the module are quite basic, and I haven't found any tutorials yet on writing proxies.
The above example is for just one password. In reality, there may be a few, and I need to add the correct encrypted password to the request header as appropriate.
Or maybe there's a better way to achieve this? What I need to be able to do is:
I do not have access to the machine sending the username/password challenges.
Any thoughts or suggestions?
Back to Seekers of Perl Wisdom