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

Hi
Actually, while i'd still like to know if it's possible to
do it by directly manipulating the symbol table or something
like that, I ended up just creating the new class at the
top of the program with the 4 or so lines needed and used
that one - very straightforward. Thanks for your help.

Specimen
  • Comment on Re: Re: make useragent follow redirects in post actions

Replies are listed 'Best First'.
Re: Re: Re: make useragent follow redirects in post actions
by merlyn (Sage) on Feb 21, 2001 at 18:48 UTC
    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

      Hi - thanks a lot! As usual it looks intuitive and clean
      even if it is in some respects a dirty hack.
      
        disculpa amigo