Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Bing API Authentication in Perl

by zentara (Archbishop)
on Oct 03, 2012 at 15:10 UTC ( #997072=note: print w/ replies, xml ) Need Help??


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.

$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


Comment on Re: Bing API Authentication in Perl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997072]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2015-07-28 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls