the5thace Posted July 7, 2013 Share Posted July 7, 2013 Sample json query : https://api.datamarket.azure.com/Bing/Search/Web?$format=json&Query=%27Xbox%27 . If you click on the link you are prompted for a username and password. both fields just require you to insert your Bing API. How can I send the password with the query attached? I'm using cURL to send the query. I have tried using the normal method outlined by bing to receive the search results but it doesn't seem to work for me. Quote Link to comment https://forums.phpfreaks.com/topic/279946-how-to-insert-a-password-when-sending-a-query-bing-api/ Share on other sites More sharing options...
Solution avshelestov Posted July 8, 2013 Solution Share Posted July 8, 2013 Do you try CURLOPT_HTTPAUTH and CURLOPT_USERPWD? Quote Link to comment https://forums.phpfreaks.com/topic/279946-how-to-insert-a-password-when-sending-a-query-bing-api/#findComment-1439864 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.