IE6 cannot download file

Posted on 2006-10-19
Last Modified: 2012-05-05
I am using a servlet written by my company to download file by HTTP.

The following screen capture is the error that occurs in IE:

The servlet does not have any caching control headers set when downloading file. Also I have tried to write a simple HttpClient program to test the link and found that it can be downloaded. That means the link is not incorrect.

So can I conclude that this is an IE problem and how can I fix this?

Question by:Peter Kwan
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
LVL 16

Expert Comment

ID: 17787302
That link is forwarding to, and gives me a DNS error, so I cannot see your message.

LVL 16

Expert Comment

ID: 17787326
If it's working in Firefox, try installing the LiveHTTPHeaders extension to see exactly what response headers are coming from your servlet, it's container, and any other bits of kit between your servlet and your browser.
LVL 16

Author Comment

by:Peter Kwan
ID: 17793055
I have tried installing IEHTTPHeaders and looked at the response header. I found that the response seems correct (at least the content length is correct).

I am not able to try Firefox since my company bans us to install Firefox.
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

LVL 16

Expert Comment

ID: 17794133
What were the headers?  And what error message does IE give?

<rant>If you're testing web applications you have a strong business case for installing any popular browser at least somewhere at work.  Especially as you are allowed to install IE extensions such as IEHTTPHeaders!</rant>
LVL 16

Author Comment

by:Peter Kwan
ID: 17794383
Here is the Http Header I got from IEHttpHeaders:

HTTP/1.1 200 OK
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Server: WebSphere Application Server/5.1
Content-Type: application/x-msexcel
Last-Modified: Mon, 23 Oct 2006 08:16:30 GMT
ETag: W/"18432-1161591390000"
Vary: Accept-Encoding
Content-Length: 18432
Content-Language: en
Age: 987

The error I got is:

"Internet Explorer cannot download from 192.168.x.x

Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later."
LVL 16

Expert Comment

ID: 17794571
So this is not HTTPS/SSL?

You don't have any response headers for Content-Disposition: attachment; filename=foo.xls.  Have you tried that?

Does the URL end with .xls?  If not try that, (can just append dummy parameters, e.g. ?filename=foo.xls)

If it's Excel 2003, and you get as far as the download dialog window, it might be this:
LVL 16

Author Comment

by:Peter Kwan
ID: 17826103
This is normal HTTP, no ssl.

The url ends with .xls (My url is: http://192.168.x.x/file/abc.xls?filename=kkk.xls), and I am not using Excel 2003.

I found that I can download pdf with the servlet in IE, (e.g. http://192.168.x.x/file/abc.pdf?filename=yyy.pdf) and text (e.g. http://192.168.x.x/file/abc.txt?filename=xxx.txt), but not excel (xls) and word (doc) files. Don't know why.

Since I was very busy these days, I will try your suggestion to add the "Content-disposition" header to see if I can download the file.
LVL 16

Accepted Solution

LeeKowalkowski earned 150 total points
ID: 17826692

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
Suggested Courses

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question