<?xml version="1.0" encoding="windows-1252"?>
<node id="997036" title="Re^2: Bing API Authentication in Perl" created="2012-10-03 07:36:25" updated="2012-10-03 07:36:25">
<type id="11">
note</type>
<author id="985376">
NeonFlash</author>
<data>
<field name="doctext">
&lt;p&gt;I tried the method you have specified to use:&lt;/p&gt;

&lt;code&gt;$mech-&gt;credentials('',$account_key);&lt;/code&gt;

&lt;p&gt;however, it does not work either and gives the same error:
&lt;br/&gt;&lt;br/&gt;
"The authorization type you provided is not supported.  Only Basic and OAuth are supported".
&lt;br/&gt;&lt;br/&gt;
I have even tried specifying a valid user agent, just in case they are performing User Agent Sniffing and it does not work.
&lt;br/&gt;&lt;br/&gt;
So, I set the user agent alias as follows:
&lt;br/&gt;&lt;br/&gt;
&lt;code&gt;$mech-&gt;agent_alias('Windows IE 6');&lt;/code&gt;
&lt;br/&gt;&lt;br/&gt;
Again, I receive the same error for authentication.&lt;/p&gt;</field>
<field name="root_node">
996948</field>
<field name="parent_node">
996961</field>
</data>
</node>
