note
haukex
<blockquote><i><c>$req->header('Authorization' => "Basic" .encode_base64('cv23gwyzqvur:ty7idfphrkl'));</c></i></blockquote>
<p>I would suggest that you don't try to set your own headers, have a look at the [mod://LWP::UserAgent] docs for the <c>credentials</c> method instead, e.g.:</p>
<c>
$ua->credentials("www.example.com:80", "Some Realm", "foo", "secret");
</c>
<p>Note that if you wanted to debug this, one way would be to use [http://www.wireshark.org/|Wireshark] to capture both a successful authentication via the browser and a failed one from your script.</p>
1190526
1190526