Stephen Turner wrote:

>On Wed, 20 Oct 1999, Aengus Lawlor wrote: 
>> 
>> I encountered a problem when I tried to use QV=1 to debug my 
>> configuration, but this seems to be a problem with the way Internet 
>> Enplorer handles URLs. Even though the the script sets the Content-Type: 
>> header properly, IE prompted me for a location to save the file, rather 
>> than displaying it in the browser. This happens on two machines that I 
>> tried it on (one with IE4, one with IE5), but two other machines 
>> displayed the qv=1 output in the browser (one with Netscape 3.x, and the 
>> other with IE5 on Windows 2000).
>> 
>
>Jeremy Wadsack asked me to post this reply, because he's having trouble 
>posting to the list at the moment:
>> This is a problem we've run into using Perl on NT servers. NT doesn't
>> properly handle the content type header and tries to implement one based 
>> on what it thinks the file type of the document is (from the operating 
>> system point of view), so it probably sent a header like
>> Content-type:application/perl instead of letting the cgi application
>> handle it.

No, IIS sets the header properly to Content-Type: text/plain  when I append 
the qv=1 parameter. And, if I change the perl script to send text/html, I 
don't get prompted to save the file (but there are no carraige returns). It 
looks like it's a problem with IE, because it's prompting me to save the 
file, and defaulting to a file name of analog.pl. And it only happens on 
machines that I've installed Perl on, which makes me think that IE has 
decided that text/plain doesn't mean text/plain for .pl scripts. Which is a 
pain.

> (I think that Microsoft wants you to use ISAPI instead of CGI). 
> The easiest way to handle this is to rename the script .cgi and then
> associate the 'cgi' extension with perl IN THE WEBSITE MANAGER. Don't
> associate this extension with anything in Windows Explorer or you'll just 
> be back to the place you were before.

ActiveState Perl automatically registers .plx for this purpose.

Aengus
Received: from nmho11u.rohmhaas.com ([136.141.252.11]) by ima1.rohmhaas.com with
SMTP
  (IMA Internet Exchange 3.13) id 003D769E; Tue, 26 Oct 1999 11:50:57 -0400
Received: by nmho11u.rohmhaas.com; id LAA11117; Tue, 26 Oct 1999 11:50:53 -0400
(EDT)
Received: from lists.isite.net(198.207.204.41) by nmho11u.rohmhaas.com via smap
(V4.2)
        id xma010694; Tue, 26 Oct 99 11:50:43 -0400
Received: from localhost (sendmail@localhost)
        by lists.isite.net (8.9.3/8.9.3) with SMTP id IAA27083;
        Tue, 26 Oct 1999 08:30:30 -0700 (PDT)
Received: by lists.isite.net (bulk_mailer v1.12); Tue, 26 Oct 1999 08:29:47
-0700
Received: (from majordom@localhost)
        by lists.isite.net (8.9.3/8.9.3) id IAA27053
        for analog-help-localoutlist; Tue, 26 Oct 1999 08:29:45 -0700 (PDT)
Received: from lion.statslab.cam.ac.uk (lion.statslab.cam.ac.uk [131.111.20.59])
        by lists.isite.net (8.9.3/8.9.3) with SMTP id IAA27049
        for <[EMAIL PROTECTED]>; Tue, 26 Oct 1999 08:29:42 -0700 (PDT)
Received: from gamma.statslab.cam.ac.uk [131.111.20.18] 
        by lion.statslab.cam.ac.uk with smtp (Exim 1.82 #2)
        id 11g8Xc-0004Q5-00; Tue, 26 Oct 1999 15:29:40 +0000
Date: Tue, 26 Oct 1999 16:29:40 +0100 (GMT)
From: Stephen Turner <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: [analog-help] New forms Interface
In-Reply-To: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Precedence: bulk

Reply via email to