Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generating files with servlets

 
Bai Shen
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an xml file that I want users to be able to download. I'm dynamically generating it with a servlet whenever the user connects. I'm using FORM auth. It works fine in Firefox, but it won't work in IE unless I remove the auth.

Any ideas?

 
Bai Shen
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just tried it with BASIC auth instead, and it didn't work either.

IE keeps saying that it was not able to open the site. The site is either unavailable or cannot be found.

It still works fine with FF, though.

I did the same setup before using BASIC auth and it worked, so I'm not sure why it's not this time.

Any ideas on what to look at?
 
Bai Shen
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, as far as I can tell, the main cause of this is from setting no-cache headers on the page.

However, I removed my no-cache settings and I'm still getting the error.
 
Bai Shen
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, somehow the cache-control header was still being set even though I didn't have it in my code. I set the header to public and IE works now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic