Try
my $headers = HTTP::Headers->new( 'Timeout' => '30', ); $ua->default_headers($headers); [download]
In reply to Re: LWP: POST with headers by shmem in thread LWP: POST with headers by tbbatccc