title: Meteorjs: How to download attachment from response to .csv file?
body: <p>I'm having trouble saving to a .csv file from a response returned from a POST call in Meteorjs.</p>
  
  <p>Relevant headers from the response:  </p>
  
  <p><code>content-type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8.</code></p>
  
  <p><code>content-disposition: attachment;filename=Dashboard.xlsx</code></p>
  
  <p><code>content-encoding: gzip</code></p>
  
  <p>Content from the response: <code>'\u001f�\b\u0000\u0000\u0000\u0000\u0000\u0000\u0003\u0002\u0000\u0000\u0000��\u0003\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000'</code></p>
  
  <p><code>file.write(response.content);</code> just pipes that gibberish to a csv.</p>
  
  <p>As an alternative, I'm thinking I can just spawn a child process and curl.</p>