ASP - Wrong URL - Asked By srinivas gajavada on 18-Jun-01 02:46 PM

Response.AddHeader "Content-Disposition","attachment;"
Response.ContentType = "application/zip"
Response.CacheControl = "public"

followed by streaming code....

When I run this code, instead of showing the TEST.ZIP filename in the download dialog box it shows the ASP filename itself. But finally it saves TEST.ZIP. 

i am using IE 5.01(SP1) on WIN 2K IIS 5.0
Can anyone help me on this ?

Curious... - Asked By Robbe Morris on 18-Jun-01 03:11 PM

When I redirect directly to the zip file via URL, I'm automatically prompted to download.

Are you trying to do something different?

yes .. but - Asked By srinivas gajavada on 18-Jun-01 03:16 PM

yes. me too download box is prompted but file name in the dialog box is showing ASP filename(in which i had written code) instead of TEST.ZIP !!!

I just did this... - Asked By Robbe Morris on 18-Jun-01 03:45 PM

Here's what's in the following URL.  Run it...

  <% response.redirect "/articles/" %>

 I only see the .zip dialog box.
not redirecting but streaming .. - Asked By srinivas gajavada on 18-Jun-01 05:06 PM
I am basically forcing the "File Download" dialog box for both known/unknown MIME types(doc,pdf,zip,tar etc) related to the Microsoft article
and streaming the data.

Response.AddHeader "Content-Disposition","attachment; filename=test.pdf" 
Response.ContentType = "application/pdf" 
Response.CacheControl = "public" 

and steaming code...
Ah... - Asked By Robbe Morris on 19-Jul-14 02:54 AM
I'm sorry.  I've never needed to do this.  I read the sub article.  Are you sure your file complies with it's requirements for suitable content.