Changing MIME type under SSL fails for MSIE6

P

Pavils Jurjans

Hallo,

Sorry for cross-posting, but in this case it's really a cross-field problem
here:

Please have this ASP code for your consideration:

/////////// ASP code stars here /////////// Filename: excelMIME.asp

<%@language=JScript codepage=65001%>
<%
if (Request("x")+'' == 'show') {

Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("Content-Disposition", "attachment;
filename=ExcelReport.xls;");

%>

<html>
<head>
<title> Excel doc </title>
</head>

<body>
<table>
<tr><td>A</td><td>B</td><td>C</td></tr>
<tr><td>D</td><td>E</td><td>F</td></tr>
<tr><td>G</td><td>H</td><td>I</td></tr>
</table>
</body>
</html>

<% } else { %>

<html>
<head>
<title> Excel doc test </title>
</head>

<body>

<a href="excelMIME.asp?x=show">Click here for a GET test.</a>

<form method="post">
<input type="hidden" name="x" value="show">
<input type="submit" value="Click here for a POST test">
</form>

</body>
</html>

<% } %>

/////////// ASP code ends here ///////////

So, this code is intended for testing the opening of HTML report in Excel.
This code works fine under http, but under https it fails to understand the
changed MIME type. What's curious, it fails only on MSIE6, while on
Mozilla1.3 and Opera6 it works without quirks.

Therefore, it certainly seems that it's a client-side problem here, and I
must develop some workaround for this problem. I'd be happy if somebody
could comment on this issue.

Thanks in advance,


-Pavils Jurjans
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,434
Messages
2,571,690
Members
48,796
Latest member
Greg L.

Latest Threads

Top