title: Windows Script Host (jscript): how do i download a binary file?
body: <p>i'm trying to automate a file download with Windows Script Host (JScript).  i see ADODB.Stream has an Open method whose documentation makes it seem like it should be possible to open a HTTP URL and stream the response body:</p>
  
  <pre><code>var url = 'http://example.com/example.tar.gz';
  var path = 'example.tar.gz';
  
  var input = WScript.CreateObject('ADODB.Stream');
  
  input.Open(url);
  input.SaveToFile(path);
  input.Close();
  </code></pre>
  
  <p>But it bombs on the <code>Open</code> call with</p>
  
  <p><em>(null): Object or data matching the name, range, or selection criteria was not found within the scope of this operation.</em></p>