Changing MIME type under SSL fails for MSIE6

Discussion in 'ASP General' started by Pavils Jurjans, Sep 3, 2003.

  1. 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
     
    Pavils Jurjans, Sep 3, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. CJ
    Replies:
    1
    Views:
    1,578
    Andrew Thompson
    Oct 29, 2004
  2. Jonathan N. Little

    Float problem MSIE6.0 only

    Jonathan N. Little, Oct 24, 2005, in forum: HTML
    Replies:
    3
    Views:
    510
    Jonathan N. Little
    Oct 24, 2005
  3. Ralph A. Gable

    MSIE6 Python Question

    Ralph A. Gable, May 24, 2004, in forum: Python
    Replies:
    10
    Views:
    1,241
  4. Andy Baker

    RE: MSIE6 Python Question

    Andy Baker, May 24, 2004, in forum: Python
    Replies:
    1
    Views:
    351
    Ralph A. Gable
    Jun 10, 2004
  5. Jan Arickx
    Replies:
    0
    Views:
    205
    Jan Arickx
    Aug 25, 2003
Loading...

Share This Page