Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Bing API Authentication in Perl

by Anonymous Monk
on Oct 03, 2012 at 02:32 UTC ( #996961=note: print w/ replies, xml ) Need Help??


in reply to Bing API Authentication in Perl

I think my syntax for passing the credentials in the request is correct.

Doesn't look like it to me :)

$mech->credentials( $username, $password ) Provide credentials to be used for HTTP Basic authentication for all sites and realms until further notice.


Comment on Re: Bing API Authentication in Perl
Download Code
Re^2: Bing API Authentication in Perl
by NeonFlash (Novice) on Oct 03, 2012 at 11:36 UTC

    I tried the method you have specified to use:

    $mech->credentials('',$account_key);

    however, it does not work either and gives the same error:

    "The authorization type you provided is not supported. Only Basic and OAuth are supported".

    I have even tried specifying a valid user agent, just in case they are performing User Agent Sniffing and it does not work.

    So, I set the user agent alias as follows:

    $mech->agent_alias('Windows IE 6');

    Again, I receive the same error for authentication.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2014-08-23 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (173 votes), past polls