title: Extjs 4 (with a code for 3.4 below) downloading a file returned from a post request
body: <p>I have seen questions slightly related to this, but none that answer my problem. I have set up an Ext.Ajax.request as follows:</p>
  
  <pre><code>var paramsStringVar = 'param1=1&amp;param2=two&amp;param3=something&amp;param4=etc';
  
  Ext.Ajax.request({
    url: '/cgi-bin/url.pl',
    method:'POST',
    params:paramsStringVar,
    timeout:120000,
    success: function(response, opts){
      var objhtml = response.responseText; //content returned from server side
      console.log(objhtml);
    }
  
  });
  </code></pre>
  
  <p>This request retrieves the appropriate content from the backend. One parameter is outputType, which can take values {html, excel, csv}. When returning html to display I am able to handle and display it correctly. Now on to the problem...</p>
  
  <p>When I set the outputType parameter to csv or excel, I get back the appropriate content as csv or tsv(excel) as requested. BUT, I don't want the content, I want a prompt to download the file(csv or excel). How can I have the browser auto prompt the user to download the file instead of just retrieving the text content within extjs?</p>
  
  <p>Version 4.07 so I can't use any 4.1 only features</p>