Thank you for the reply. I've not moved to .NET, so I really need help with the code for classic ASP. I am stuck with getting this going and would really need example of code that I can use.
I have tried this:
<%@language=Jscript%>
<%
MyNewKey = "my key goes ere"
var objSrvHTTP;
objSrvHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP.6.0");
objSrvHTTP.open ("GET","https://api.datamarket.azure.com/Bing/Search/v1/Image?Query=%27mr2%27&Adult=%27Strict%27&$top=50&$format=Atom",false,MyNewKey);
objSrvHTTP.send ();
Response.ContentType = "text/xml";
Response.Write (objSrvHTTP.responseXML.xml);
%>
I have also tried:
<%
MyNewKey = "my key goes here"
searchURL= "https://api.datamarket.azure.com/Bing/Search/v1/Image?Query=%27mr2%27&Adult=%27Strict%27&$top=50&$format=Atom"
Set xmlObj = Server.CreateObject("MSXML2.ServerXMLHTTP.6.0")
xmlObj.open "GET", searchURL, false
xmlObj.setRequestHeader "Authorization" ,"Basic " & & MyNewKey
xmlObj.send
Response.Write (xmlObj.responseXML.xml)
%>
even
<%
Dim objSrvHTTP: Set http = Server.CreateObject("MSXML2.ServerXMLHTTP")
http.open "GET","https://api.datamarket.azure.com/Bing/Search/v1/Image?Query=xbox&Adult=%27Strict%27&$top=50", False, "", MYkey
http.send
Response.ContentType = "text/xml"
http.responseXML.save Response
%>