Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Re: help with LWP and log in after redirect
- Ben Morrow
March 4, 2008, 4:05 pm
rate this thread
So whatever LWP is sending, the server doesn't like it and doesn't
accept it as a valid logon.
You shouldn't need this. requests_redirectable refers to the method used
to follow the redirect, not the method the redirect is a reply to; and
LWP treats 302 as 'GET this URL' rather than 'repeat the previous
request with a different URL', in line with the behaviour of most (all?)
actual browsers (this is strictly against the letter of the standard,
but RFC2616 recognises that this is the actual implemented behaviour).
This will not set the Referer header. I would recommend using
WWW::Mechanize instead, which tries as hard as possible to emulate an