title: Using MSXML2.ServerXMLHTTP to access data from a web page returns truncated data in Lua
body: <p>I am trying to download a source code file from a web site which works fine for small files,  but a couple of larger ones get truncated.</p>
  
  <p>The example below should be returning a file 146,135 bytes in size, but returns one of 141,194 bytes with a status of 200.</p>
  
  <p>I have tried winhttp.winhttprequest.5.1 as well, but both seem to truncate at the same point.</p>
  
  <p>I have also found quite a few people with similar problems, but have not been able to find a solution.</p>
  
  <pre><code>require('luacom')
  
  http = luacom.CreateObject('MSXML2.ServerXMLHTTP')
  
  http:Open("GET","http://www.family-historian.co.uk/wp-content/plugins/forced-download2/download.php?path=/wp-content/uploads/formidable/tatewise/&amp;file=Map-Life-Facts3.fh_lua&amp;id=190",true)
  http:Send()
  http:WaitForResponse(30)
  print('Status: '..http.Status)
  print('----------------------------------------------------------------')
  headers = http:GetAllResponseHeaders()
  data = http.Responsetext 
  print('Data Size = '..#data)
  print('----------------------------------------------------------------')
  print(headers)
  </code></pre>