$ENV{HTTPS_VERSION} = 3; $ENV{HTTPS_DEBUG} = 1; # Variables for the URL retrieving my $ua = new LWP::UserAgent; $ua->cookie_jar($cookie_jar); my $res; my $post = POST $url, \%form; $post->authorization_basic('_api_', $key); print $post->content . "\n"; $res = $ua->request( $post );