Download a website within jscript or vbscript?

[quote="wowbagger"]Sounds like a good script, make sure you share when you are done :slight_smile:.

Have a look at this script DO11: TheMovieDB Poster&Info Downloader V2.0. it does something very similar but for movies.
Miran used this code to download.

var xhr = new ActiveXObject("Msxml2.XMLHTTP.6.0"); url = MovieDB_BaseUrl + "/configuration?api_key=" + MovieDB_APIKey xhr.open("GET", url, false); xhr.setRequestHeader("Accept", "application/json"); xhr.send(null) [/quote]

Thanks a lot! Exactly what I needed.

I tried the same code before (incl. with "XMLHttpRequest()") but it didn't work. Now it looks like the same code but I don't know where was the mistake. However ... :stuck_out_tongue:

getAjaxValues("http://api.discogs.com/release/5548068");

function getAjaxValues(webUrl)
{
  var xhr = new ActiveXObject("Msxml2.XMLHTTP.6.0");
  var url = webUrl;
   xhr.open("GET", url, false);
   xhr.setRequestHeader("Accept", "application/json");
   xhr.send(null);
   var xmlText = xhr.responseText;
   DOpus.Output(xmlText);
}