Re: streamed zip



Hi,

Tore Halset wrote:
I have a servlet that streams a zip archive to the client. It uses
java.util.zip.ZipOutputStream & co. It does not set the content
length header as the size is not known before the zip is created.

When a windows user clicks on a link to this servlet, she can choose between "open" and "save". Save works very well, but
"open" does not. Using "open" just show an empty zip archive.

Anyone else seen this? Any known workaround?

I am not sure if this is really the problem, but some time ago, I encountered a similar problem (or: "a different problem with a similar effect"):

When "opening" some remote resource via IE, some IE versions seem do not pass the 'response-stream' to the application, but rather pass the URL of the 'resource' to the application which causes the application to send a second request to the server. If the server is not able to handle that, this will cause problems.

Ciao,
Ingo

.



Relevant Pages

  • [NT] Port80 Software ServerMask Inconsistencies
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... IIS servers by obfuscating header fields within HTTP responses: ... "ServerMask 2.0 removes or modifies unnecessary response data. ... provide reliable clues to the server being Microsoft IIS. ...
    (Securiteam)
  • Re: minimal httpd response
    ... RST, abortively closing the connection. ... The responsibilities of an HTTP/1.1 proxy, and of an HTTP/1.1 server ... user agent, without a proxy, first, and then try to deal ... Connection header; with a Content-length header; or with the chunked ...
    (comp.programming)
  • Re: I want my MOM
    ... >> 5) Require that the header MUST have the content-length ... >> again slam the server with never ending data until it dies. ... server to have a reason to boot bad clients. ... Another thing a pre-sized protocol does is make it much harder to have ...
    (comp.lang.ruby)
  • Re: MimeOLE V6.00.2900.2180 creates incorrect X- header
    ... from Server, such as move to another folder, does ... engine loops when it encounters the defective empty header when it ... the POP3 server sends a period on a line by ... The search for the final header loops because of the malformed EOM ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Its driving me crazy!
    ... Here's a sample list of ISPs ... The first header is a "Received" header. ... You can trust most of what this header tells you. ... The server at that address _claimed_ that it was ...
    (microsoft.public.security.virus)