in reply to Bing API Authentication in Perl
If I open the URL in browser, it is a Basic Pop Authentication with no Realm, the username should be blank and the password is the account key.
I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
$mech->credentials($url, '', '', $account_key);
From the looks of it, you are using a format for credentials that is used with a proxy, and you are stuffing the url you wish to retrieve in as the proxy url. Why not just use
$mech->credentials( '', $account_key ); #??
Also see Need help using WWW::Mechanize to access proxy and authentication for another way of setting up Basic Authorization.
I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
In Section
Seekers of Perl Wisdom