in reply to Re: Re: make useragent follow redirects in post actions
in thread make useragent follow redirects in post actions

OK, it's Evil, but I've done it for a quick hack once (actually, to get redirects turned off):
use LWP::UserAgent; BEGIN { *LWP::UserAgent::redirect_ok = sub { 1 }; }
I've got to go take a shower now. I feel so... dirty. {grin}

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: Re: Re: make useragent follow redirects in post actions
by Anonymous Monk on Feb 21, 2001 at 21:14 UTC
    Hi - thanks a lot! As usual it looks intuitive and clean
    even if it is in some respects a dirty hack.
    
      disculpa amigo