use LWP::UserAgent;
use LWP::ConnCache;
+use IO::Socket::SSL;
use XML::Simple;
use Data::Dumper;
use File::Temp;
-my $ua = LWP::UserAgent->new(cookie_jar => {});
+my $ua = LWP::UserAgent->new(cookie_jar => {},
+ ssl_opts => {verify_hostname => 0,
+ SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE});
$ua->default_header('Referer' => 'http://localhost');
+push @{ $ua->requests_redirectable }, 'POST';
sub login {
my $url = shift;