Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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.

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]
[choroba]: Corion ad functional: in Erlang, it's even more like Prolog, as its syntax is very close to Prolog's

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2017-12-11 12:12 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (290 votes). Check out past polls.