provide-free-support Ujjwal's Blog: “Internet Explorer Cannot Download” Error Message When You Use HTTPS URL

Thursday, December 31, 2009

“Internet Explorer Cannot Download” Error Message When You Use HTTPS URL


Internet Explorer will not display attachments when HTTPS is used. This bug has been documented in the link below.
If  the development environment is not using HTTPS this issue will be
identified only at a later stage when we move on to integration testing
environment where we normally use HTTPS.
The following are the steps to be followed for the workaround.
1. In the Servlet code please use the below snippet.
1response.reset();
2//If the report type is other than PDF handle accordingly]
3response.setContentType("application/pdf");
4response.setHeader("Content-Disposition","attachment; filename=Report.pdf");
5 
6//pragma can be set to other available options also.
7response.setHeader("Pragma""public");
8response.setHeader("Cache-control""max-age=30");
9//The logic to write into the OutputStream goes here.
Note: The reset of HttpServletResponse is very important.
Following are to be ensured on the browser (client).

1. Ensure Do not save encrypted pages to disk check box is not selected in Internet Explorer.
2.  Incase of IE 7, ensure the automatic prompting for downloads is enabled
under Tools–>Internet Options–>Custom Level –> Downloads.

No comments:

best-it-exam-    | for-our-work-    | hottst-on-sale-    | it-sale-    | tast-dumps-us-    | test-king-number-    | pass-do-it-    | just-do-it-    | pass-with-us-    | passresults-everything-    | passtutor-our-dumps-    | realtests-us-exam-    | latest-update-source-for-    | cbtnuggets-sale-exam    | experts-revised-exam    | certguide-sale-exam    | test4-sale-exam    | get-well-prepared-    | certkiller-sale-exam    | buy-discount-dumps    | how-to-get-prepared-for-the    | in-an-easy-way    | brain-dumps-sale    | with-pass-exam-guarantee    | accurate-study-material    | at-first-try    | 100%-successful-rate    | get-certification-easily    | material-provider-exam    | real-exam-practice    | with-pass-score-guarantee    | certification-material-provider    | for-certification-professionals    | get-your-certification-successfully    | 100%-Pass-Rate    | in-pdf-file    | practice-exam-for    | it-study-guides    | study-material-sku    | study-guide-pdf    | prep-guide-demo    | certification-material-id    | actual-tests-demo    | brain-demos-test    | best-pdf-download    | our-certification-material    | best-practice-test    | leading-provider-on    | this-course-is-about    | the-most-reliable    | high-pass-rate-of    | high-pass-rate-demo    | recenty-updated-key    | only-for-students-free-download    | courseware-plus-kit-for    | accurate-answers-of    | the-most-reliable-id    | provide-training-for    | welcome-to-buy    | material-for-success-pass    | provide-free-support    | best-book-for-pass    | accuracy-of-the-answers    | pass-guarantee-id    | pass-exam-key    | pass-sku-id    | study-for-exid    | pdf-sku-exid    | sku-pdf-id    | pdf-demo-key    | exam-demo-ske    | pass-it-dump    |
http://www.menuiserie-dauvergne.com/    | http://www.menuiserie-dauvergne.com/    |