in reply to lwp authorization
$req->header('Authorization' => "Basic" .encode_base64('cv23gwyzqvur:ty7idfphrkl'));
That does not match the HTTP/1.1 Basic Auth spec.
Like haukex I cannot see why you have chosen not to use the already-available convenience method to achieve this. Can you explain your choice?
In Section
Seekers of Perl Wisdom