M
Michael Brennan
I have the following code in a webpage meant to stream a file to the user
for download. It works perfectly in a non-ssl environment, but when I enable
SSL I get the message:
Internet Explorer cannot download (the url of the page is here) from (the
website is here).
Internet explorer was not able to open this Internet site. The requested
site is either unavailable or cannot be found. Please try again later.
Here is the code:
this.CurrentContext.Response.Clear();
this.CurrentContext.Response.ContentType = "application/octet-stream";
this.CurrentContext.Response.AddHeader("Content-Disposition",
"attachment; filename=" + strDisplayFileName);
this.CurrentContext.Response.Flush();
this.CurrentContext.Response.WriteFile(strFullPath);
Any help would be appreciated. Thanks
for download. It works perfectly in a non-ssl environment, but when I enable
SSL I get the message:
Internet Explorer cannot download (the url of the page is here) from (the
website is here).
Internet explorer was not able to open this Internet site. The requested
site is either unavailable or cannot be found. Please try again later.
Here is the code:
this.CurrentContext.Response.Clear();
this.CurrentContext.Response.ContentType = "application/octet-stream";
this.CurrentContext.Response.AddHeader("Content-Disposition",
"attachment; filename=" + strDisplayFileName);
this.CurrentContext.Response.Flush();
this.CurrentContext.Response.WriteFile(strFullPath);
Any help would be appreciated. Thanks