Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   SSL Response.WriteBinary problem (http://www.velocityreviews.com/forums/t791996-ssl-response-writebinary-problem.html)

Adam B 12-04-2003 03:48 PM

SSL Response.WriteBinary problem
 
Hello. I'm writing an aspx page that reads a file from
disk and writes the file out through the
Response.WriteBinary() method. This allows me to support
security and custom reports for various users. I am
adding the MIME type for the type of file that I am
writing out to the response. Example:

if ( reportName.ToLower().EndsWith(".pdf"))
{

Response.ContentType="application/pdf";
Response.AddHeader( "content-
disposition","filename=StaticContentViewer.pdf");
}
if ( reportName.ToLower().EndsWith(".doc"))
{
Response.ContentType = "application/msword" ;
Response.AddHeader( "content-
disposition","filename=StaticContentViewer.doc");
}


This seems to work great on a regular non-secure site.
The problem that I am having is on a secure site (https).
I get errors in when trying to access PDF files or
MSOffice Files (doc,xls, etc) through my IE browser (IE
6). The browser just hangs on the MSOffice files and they
never open. On the PDF files, I get a warning about secure
and nonsecure info on and it will open. I know that the
pdf doesn't contain any nonsecure info, because I put the
same file on the site directly and did not receive the
error. Also, I get a javascript error when I close the
PDF.

I have looked around on many message boards and found the
following suggestion:

Response.AddHeader( "pragma","no-cache");

This did not work for me or many of the other developers
out there with the same problem.

Thanks in advance for any help or suggestions!

Adam




Ray at 12-04-2003 03:53 PM

Re: SSL Response.WriteBinary problem
 
> "Adam B"
> I'm writing an aspx page


www.aspfaq.com/5002

Ray at work




All times are GMT. The time now is 03:10 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57