in reply to LWP, SSL, 302

Woops....the code should have been this...
if ($page->is_success) { print $page->content; } elsif ($page->is_redirect) { print "Redirect\n"; print $page->content; } else { print $page->error_as_HTML; print $page->content; }
P.S. - I pasted in the wrong code..

seanbo

Replies are listed 'Best First'.
Re: Re: LWP, SSL, 302
by rucker (Scribe) on Aug 08, 2001 at 02:52 UTC
    Maybe I'm not understanding, but it sounds like there's a 302 loop. What happens when you do this in a browser instead of in the program? Do you get to the right location, or do you keep getting 302s?

    I noticed in your code that you don't seem to follow the redirect, but you mention that when you do, it doesn't work. Could you post that code?

      You hit the nail on the head...a 302 loop. The strange thing is, in a browser, it works fine, I just get redirected to the proper page.

      I am going to dig out the code that tried to follow the rediret and post it.

      seanbo