in reply to HTTP form Post, Getting redirect response

From 'perldoc LWP::UserAgent'
$ua->redirect_ok This method is called by request() before it tries to do any redirects. It should return a true value if a redirect is allowed to be performed. Subclasses might want to override this. The default implementation will return FALSE for POST request and TRUE for all others.
--perlplexer

Replies are listed 'Best First'.
Re: Re: HTTP form Post, Getting redirect response
by dougis (Initiate) on Apr 26, 2002 at 15:49 UTC
    That is what
    push @{ $ua->requests_redirectable }, 'POST';
    Is supposed to take care of
    (I have even gone in and edited the library to force a return of 1 from redirect_ok and the redirect doesn't occur,
    I have also put print output in there to make sure the push does what it is supposed to and the function is returning 1).

    Am I coding this wrong or does it just not work.