I have created a code from which I am getting and 302 Object Moved error:

Here is my code:

use HTML::Entities; # encode and decode things like <, >, and & use HTML::Form; # for form processing use HTTP::Cookies; # keep track of cookie use HTTP::Request::Common; use LWP::UserAgent; # pretend we are a browser use Data::Dumper; use Exporter; use LWP::Debug qw(+); use strict;

I afraid but it does not works as I am using perl 5.6.1 and it gives me error as "Can't locate object method "requests_redirectable" via package "LWP::UserAgent" (perhaps you forgot to load "LWP::UserAgent"?)".

So does that mean I have to install new version of perl (which I really do not want to) or if there is any other alternative available.

It means you need to upgrade the LWP::UserAgent module. Older versions simply denied redirection for POST operation, the the requests_redirectable method was added to give you more control over which type of requests can and cannot be redirected

>> If you can't control it, improve it, correlate it or disseminate it with PERL, it doesn't exist!

I'll try this with new version of libwww-perl 5.802. But I have Crypt::SSLeay module already installed on the older version. Does that means after upgrading to libwww:perl 5.8 from 5.53 I again need to install the Crypt:SSleay module ?

Then some other HTTPS header is missing or incorrect according to the page you are being redirected to. Track the headers for a successful login and compare them to what you are sending. I just use Mozilla with the LiveHTTPHeaders add in. http://livehttpheaders.mozdev.org/.

>> If you can't control it, improve it, correlate it or disseminate it with PERL, it doesn't exist!