title: PDF file download not working only for iPad specific browsers
body: <p>A PDF file is generated on server side and pushed to client end for download. While the download works in all browsers on windows , fails on IPAD. 
  Please advise.</p>
  
  <p>Specification : OS 6, Safari 6.1 , Chrome 23.0.1271.100</p>
  
  <p>Please note: In this application pdf is not downloaded on to a new url (NO REDIRECTION).</p>
  
  <p>General behavior: IPad browser (safari / chrome) does not support the download window, hence its expected to open the pdf and provides option to view in pdf compatible apps. Which is not currently happening.</p>
  
  <p>When i debug the below servlet action code for download, the pdf file is successfully generated on server but browser on Ipad does not show :-( </p>
  
  <p>Code sample :</p>
  
  <p>/** Setting response Header **/</p>
  
  <pre><code>      response.setHeader("Content-Type", "application/pdf");
        response.setHeader("Content-Disposition", "attachment;filename=sample.pdf"); 
        response.setHeader("Connection", "close");
        response.setHeader("Cache-Control","cache");
        response.setHeader("Pragma","cache");
        response.setDateHeader ("Expires", dt.getTime() + 100000);
  </code></pre>
  
  <p>/** Writing to output **/</p>
  
  <pre><code>      InputStream stream = info.getInputStream(); 
        OutputStream os = response.getOutputStream();
        try {
              response.setContentType(contentType);
              copy(stream, response.getOutputStream());
        }
        finally {
        if (stream != null) {
           stream.close();
        }
   }
  </code></pre>