Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

IE6 cannot download file

Posted on 2006-10-19
8
Medium Priority
?
442 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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
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 600 total points
ID: 17826692
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

I had to do a bit of research to find the answer to this question so I thought I'd share my results.  Due to our outdated mainframe systems, we need to downgrade IE9 to IE8 in order to stay compatible.  We also needed to downgrade Java.  In order to…
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
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.
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.
Suggested Courses

824 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