Solved

IE6 cannot download file

Posted on 2006-10-19
8
405 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

How many times have you been browsing the internet, with multiple tabs open, and closed the wrong one? Have you ever clicked 'Close all tabs' instead of 'Close current tab' ? Internet Explorer 8 now brings to you, what Firefox has had for a wh…
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…
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

895 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

12 Experts available now in Live!

Get 1:1 Help Now