Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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
Replies are listed 'Best First'.
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:


    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?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2015-11-27 17:54 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls