Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: WWW::Mechanize redirection problem

by thinc (Initiate)
on Nov 28, 2006 at 22:03 UTC ( [id://586578]=note: print w/replies, xml ) Need Help??


in reply to Re: WWW::Mechanize redirection problem
in thread WWW::Mechanize redirection problem

I had problems with redirected posts as well. See LWP::UserAgent Docs. LWP::UserAgent does not follow redirects for posts by default, you have to tell it you want to do that.

Since WWW::Mechanize is a subclass of LWP::UserAgent, you should be able to:
push @{ $mech->requests_redirectable }, 'POST';

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-18 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found