I have to download a xml file from server using IE browser.
response.setContentType("application/octet-stream");
response.setHeader("Content-Disposition", "attachement; filename=xyz.xml");
Its working fine for other browsers, but in IE it shows xml output on browser.
How can I fix it? Please, help 🙂 thanks
I think your
Content-typeis wrong. You need to set all these headers. It works for me in all browsers.