Solved

IE6 cannot download file

Posted on 2006-10-19
8
422 Views
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:
http://us.a2.yahoofs.com/users/43bf8aeez4c8aafb1/465c/__sr_/2208scd.jpg?phI_2NFBOraZeQbu

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?

Thanks.
0
Comment
Question by:Peter Kwan
  • 5
  • 3
8 Comments
 
LVL 16

Expert Comment

by:LeeKowalkowski
ID: 17787302
That link is forwarding to http://phvrf.yahoo.com/users/43bf8aeez4c8aafb1/465c/__sr_/2208scd.jpg, and gives me a DNS error, so I cannot see your message.

0
 
LVL 16

Expert Comment

by:LeeKowalkowski
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.
0
 
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.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 16

Expert Comment

by:LeeKowalkowski
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>
0
 
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 ...xxx.xls 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."
0
 
LVL 16

Expert Comment

by:LeeKowalkowski
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: http://support.microsoft.com/kb/840386
0
 
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.
0
 
LVL 16

Accepted Solution

by:
LeeKowalkowski earned 150 total points
ID: 17826692
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Internet Explorer 11.0 crashed. 10 51
Flash movie autostarts and web pages 2 57
How to get rid of bothersome advertisement popup? 7 59
What is the best password manager? 12 169
After uninstalling Opera browser (for example ver. 10.63), your attempts to open a web page by clicking on a URL link may fail with an error message.  The error is "This operation has been canceled due to restrictions in effect on this computer. Ple…
I recently found myself in a Corporate Situation where the client had requested blocking access to any and all websites except his own Domain? Easy? I am sure this would be your answer but their requirement was, this has to be done without using…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
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.

856 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