Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: make useragent follow redirects in post actions

by Specimen (Acolyte)
on Feb 21, 2001 at 17:42 UTC ( [id://59916]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://59916]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-26 04:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found