in reply to redirection using LWP::UserAgent

What does it do when it doesn't work? Does the same thing work without EZPROXY? What is EZPROXY?

Replies are listed 'Best First'.
Re^2: redirection using LWP::UserAgent
by mrguy123 (Hermit) on May 01, 2006 at 07:27 UTC
    Thanks for your reply.
    EZPROXY is a proxy server that web transactions go through. It works by puting this prefix before a web transaction:
    http://10.1.235.60:8181/login?user=admin&pass=123456&url=http://www.something.com
    When I try to retrieve a web page through this proxy using the LWP::UserAgent, I get a page that wants my username and password (which I have put in the prefix).
    However, when I use manual redirection instead of the UserAgent redirection, I manage to retrieve the page.
    Manual redirection is a long and ugly process, which I would like to do without. Any Ideas?
    Thanks again
    Guy Naamati
      It sounds like a bug in EZPROXY, not handling cookies or redirects correctly. I'd suggest trying a different proxy, or else analyzing the difference in the sent and returned headers when using the proxy vs. not using it to find what EZPROXY is leaving out.
        Thanks.
        I'll try doing that.
Re^2: redirection using LWP::UserAgent
by mrguy123 (Hermit) on May 01, 2006 at 07:30 UTC
    I forgot to add, that the UserAgent redirection works when not using EZPROXY.