Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 avoiding work at the Monastery: (5)
As of 2015-07-07 04:33 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 (87 votes), past polls