This message is being redirected to the beginners-cgi list. Please answer on that list, and to the original poster. Thanks.
Cheers, Kevin On Mon, Aug 19, 2002 at 04:11:14PM +0100, Matt Wetherill ([EMAIL PROTECTED]) said something similar to: > Hi list, > > I'm just trying to get started with cgi (w2k, Apache 2.0.40), and have been > using the sample script "printenv.pl" which is included with Apache: > > #!c:/Perl/bin/Perl.exe > ## > ## printenv -- demo CGI program which just prints its environment > ## > > print "Content-type: text/plain\n\n"; > foreach $var (sort(keys(%ENV))) { > $val = $ENV{$var}; > $val =~ s|\n|\\n|g; > $val =~ s|"|\\"|g; > print "${var}=\"${val}\"\n"; > } > > However, if I try to run this script from a browser using the url: > > http://localhost/cgi-bin/printenv.pl > > Netscape6 works fine and displays the environment in the browser window, but > IE 6 tries to download the script and it looks like the server isn't being > allowed to run it. > > I appreciate that this is probably a bit off-topic, but any advice or > pointers to other resources would be greatly appreciated. > > many thanks > > Matt > > - > ****************************** > Matt Wetherill > University of Salford > [EMAIL PROTECTED] > mobile: +44 7812 016059 > office: +44 161 295 5853 > ****************************** > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/2002 > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- [Writing CGI Applications with Perl - http://perlcgi-book.com] All people have the right to be stupid, some people just abuse it! -- Frank Zappa -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]