Register / Login
Win a copy of
Murach's Python Programming
this week in the
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
posted 4 years ago
A new window is opened but when i'm getting an error response like this:
Internet explorer cannot download somefile from localhost.
I'm setting the following headers in the HTTP response at the server side:
response.setContentType("text/plain"); response.setHeader("Content-disposition", "attachment;filename="+fileName); response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache");
My browser version is IE 8. This is working in latest version of chrome.
Please help in resolving the issue. Also, how to get Open/Save/Cancel dialog box when window.open is triggered and the response is obtained from the server?
It is sorta covered in the
JavaRanch Style Guide
Boost this thread!
response.setHeader("Refresh", "10; URL=http:\\ www.javaranch.com");
File Download Issue in IE
problem with download dialog box
IE Address Bar issue
Outputting to .txt