Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: make useragent follow redirects in post actions

by merlyn (Sage)
on Feb 21, 2001 at 18:48 UTC ( [id://59926]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-24 21:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found