title: Can we Download a CSV file using Http Post?
body: <p>So , I have some thing like this in the back end.
          response.setContentType("text/csv; name=" + fileName);
          response.addHeader("content-disposition", "attachment; filename=\"" + fileName + "\"");</p>
  
  <pre><code>    try {
          final String csvBuilder = this.reportService.tripSummaryCsvBuilder(trips);
          response.getOutputStream().write(csvBuilder.getBytes());
      } catch (Exception e) {
          logger.error("downloadTripSummary() - Unexpected exception: ", e);
          throw new ServerErrorException("download trip summary csv file failed");
      }
  </code></pre>
  
  <p>So, All the back end code works fine. But the only problem here is  I need to send like an ArrayList of 1000 objects to server , based on each element inside the arraylist the csv is built on the server. </p>
  
  <p>If its a normal Http Get , it will works fine . But in this case, i need to use POST because I cant send 1000 objects as part of url.</p>
  
  <p>I am using angular js on UI side . Could some one please assist me on how to do this ?</p>
  
  <p>I have tried to use $http.post call using an ajax service in agular js, but the service is not able to pop up the window to save the file once the response is received. </p>