Solved

IE6 cannot download file

Posted on 2006-10-19
8
394 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
 
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Now-a-days, indirectly, postal services have been replaced by email services. Yes, whenever we hear the word "email" a lot of people only think of gmail. Some people still think that email and gmail are one and the same thing :-). Let's see some …
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.
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 to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now