Register / Login
Win a copy of
The Java Performance Companion
this week in the
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?
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