Immutable solution version
Bing API Authorization not working - The authorization type you provided is not supported. Only Basic and OAuth are supp
Complete solution
Fix for Bing API Authorization not working - The authorization type you provided is not supported. Only Basic and: What was asked: Stack Overflow #11989959 (accepted answer, 3 votes, 4 answers): I recently got an email from Microsoft saying that the Bing API was moving to the Windows Azure Marketplace. Use this when you hit exactly this in Bing API Authorization. Not for different errors or different tools.
TL;DR: What was asked: Stack Overflow #11989959 (accepted answer, 3 votes, 4 answers): I recently got an email from Microsoft saying that the Bing API was moving to the Windows Azure Marketplace. It seemed that the main difference between the new request was the authentication. After reading many posts on forums, I found this:
Bing API Authorization not working - The authorization type you provided is not supported. Only Basic and OAuth are suppFix
What was asked: Stack Overflow #11989959 (accepted answer, 3 votes, 4 answers): I recently got an email from Microsoft saying that the Bing API was moving to the Windows Azure Marketplace. Expected: this specific failure stops.
It seemed that the main difference between the new request was the authentication. Expected: this specific failure stops.
After reading many posts on forums, I found this:. Expected: this specific failure stops.
- ``` $accountKey [your value] $api = 'YOURHOST.datamarket.azure.com/Bing/Search/Web?$format=json&$top=8&Query='; $context = streamcontextcreate(array( 'http' => array( 'requestfulluri' => true, 'header' => "Authorization: Basic " . base64encode($accountKey . ":" . $accountKey) ) )); $request = $api.'%27'.$q.'%27&$skip='.$start; $result = fileget_c
What works: [user94559 (accepted answer)]: I think the URLs have changed. This code works. Note the URL in the first line: ```. Expected: this specific failure stops.
Details
What was asked: Stack Overflow #11989959 (accepted answer, 3 votes, 4 answers): I recently got an email from Microsoft saying that the Bing API was moving to the Windows Azure Marketplace. It seemed that the main difference between the new request was the authentication. After reading many posts on forums, I found this: ``` $accountKey [your value] $api = 'YOURHOST.datamarket.azure.com/Bing/Search/Web?$format=json&$top=8&Query='; $context = streamcontextcreate(array( 'http' => array( 'requestfulluri' => true, 'header' => "Authorization: Basic " . base64encode($accountKey . ":" . $accountKey) ) )); $request = $api.'%27'.$q.'%27&$skip='.$start; $result = fileget_c
What works: [user94559 (accepted answer)]: I think the URLs have changed. This code works. Note the URL in the first line: `` $api = 'YOUR_HOST.datamarket.azure.com/Data.ashx/Bing/Search/v1/Web?$format=json&$top=8&Query='; $context = stream_context_create(array( 'http' => array( 'request_fulluri' => true, 'header' => "Authorization: Basic " . base64_encode($accountKey . ":" . $accountKey) ) )); $q = 'test'; $request = $api.'%27'.$q.'%27'; echo file_get_contents($request, 0, $context);
When to use
You hit exactly this: Bing API Authorization not working - The authorization type you provided is not supported. Only Basic and OAuth are supp in Bing API Authorization.
When not to use
A different error, or the same symptom in a different tool. This page only covers the failure above.
Compatibility
Bing API Authorization (versions mentioned here: v1).
Evidence
On Stack Overflow, the asker wanted: Bing API Authorization not working - The authorization type you provided is not supported. Only Basic and OAuth are supp. The accepted answer: [user94559 (accepted answer)]: I think the URLs have changed. This code works. Note the URL in the first line: Source: https://stackoverflow.com/questions/11989959
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl__cyg2aJ29gSk9Q0xNeV46g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Bing API Authorization not working - The authorization type you provided is not supported. Only Basic and OAuth are supp <span>— Vectle</span></a>