Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

saving as a zip file

 
mango ewing
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I need to save something in a compressed format. I have this line of code:
response.setHeader("Content-Type", "application/x-zip-compressed");
It works fine on Windows XP, but doesn't work on Windows 2003 Server. I used Fiddler on Windows 2003 Server, and found that IE never receives a session which has content-type set to "zip" or "compressed".

I suspect that some recent Windows service pack caused something, because it used to work. But the function wasn't tested constantly, so I don't know for sure when it was first broken.

Did anyone have similar experience?
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you mean by 'doesnt work'

Does nothing get sent back to the client, or does the client just not know what to do with what comes back.

If the content gets sent back to one client, then it's getting sent back to the other client, unless there is some refuse header the client is sending to the server.

There's not a firewall blocking zip files between the client and the server, is there?

-Cameron McKenzie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic