Perl Script is Downloaded When Using Netscape 3.0

Last reviewed: October 30, 1997
Article ID: Q158732
The information in this article applies to:
  • Microsoft Internet Information Server versions 1.0 and 2.0

SYMPTOMS

When you use browsers that have a mime mapping for .pl or .cgi file the browser may try to download the script rather than executing it.

CAUSE

When the following header information is not present as the first line of a CGI script, a browser with a mime mapping for the file type may try to download the script rather than execute it:

   print "HTTP/1.0 200 OK\n";

RESOLUTION

Make sure your CGI scripts return the following as the first line of the CGI header response:

   print "HTTP/1.0 200 OK\n";


Additional query words: iis cgi script download
Keywords : iismime iisscript iissecurity kbprb
Version : 1.00 2.00
Platform : winnt
Hardware : ALPHA x86
Solution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.