My suspicion is that IE is looking ahead of time at the extension of the file requested and doing some guess work (*I could be wrong*) but in this case your only real option would be to rename your CGI script, which is a beautiful thing about the web/unix/etc, you can do this!
You might try changing your script name to be ".zip" and then just adding a handler to the web server conf to fool it into thinking .zips are executables rather than boring binary files. Naturally this effects all other .zips in the same configuration space, but if that is a problem you might be able to set it just for a particular location, or do some URL translations, or something to correct the problem for regular .zips. Not that I would suggest any of this, but it might be an option to combat IE's tactics (if this is in fact what IE is doing). http://danconia.org Octavian Rasnita wrote: > Hi all, > > I want to print a zip file to the browser but I want to make the browser > think that it gets the zip file directly, not through a CGI script. > > Why? > Because when clicking on a link for downloading a zip file directly, the > download managers are triggered, and the page visitors can download the zip > file using a download manager. > > If I print the zip file to the browser, it opens the default Internet > Explorer window for downloading the file and the download managers are not > triggered at all. > > I've tried to find what headers appear when opening a zip file in Internet > Explorer directly. > > I found: > Accept-Ranges: bytes > Content-Length: [the number of bytes] > Connection: close > Content-type: application/zip > > If I use these headers, the zip file still opens the default download window > of Internet Explorer. > > I've tried adding the following header line, with the same results: > Content-disposition: attachment; filename=filename.zip > > Please tell me which header should I print to make Internet Explorer, and > the download managers think that it is a real zip file, and not one served > by a CGI script. > > Thank you very much! > > > Teddy Center: http://teddy.fcc.ro/ > Mail: [EMAIL PROTECTED] > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]