|
Home > Archive > Web Servers on Unix and Linux > May 2004 > Beginner's question
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Beginner's question
|
|
| Charlie 2004-05-11, 8:23 pm |
| Hi there,
This is my first time to play with the cgi-bin program throw the
apache. What I did was
1. start the apache,
2. call the following "hello.pl" file from the browser, as
http://localhost/cgi-bin/hello.pl,
"
#!c:/perl/bin/perl -w
print "Context-type: text/plain\n\n";
print "Hello world";
"
I have tried both netscape 7.0, and IE 6.0. The netscape works file.
But for the IE, the output is not displayed, instread, it asks me
where to have the output saved. Does anyone know why this happening ?
thanks,
Charlie
| |
| David Dorward 2004-05-11, 8:23 pm |
| Charlie wrote:
> print "Context-type: text/plain\n\n";
"Content" not "Context"
> But for the IE, the output is not displayed, instread, it asks me
> where to have the output saved. Does anyone know why this happening ?
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
| |
| Charlie 2004-05-11, 8:23 pm |
| David Dorward <dorward@yahoo.com> wrote in message news:<c7l5fk$sju$1$8302bc10@news.demon.co.uk>...[vbcol=seagreen]
> Charlie wrote:
>
>
> "Content" not "Context"
>
Thank you for the tips, but this does not solve my problem.
Charlie
| |
|
| In article <1dc70d61.0405090921.fd3f372@posting.google.com>, Charlie
<cji_work@yahoo.com> wrote:
>
> Thank you for the tips, but this does not solve my problem.
>
>
> Charlie
I think it's nothing to do with Apache/cgi but a client side issue.
I imagine it is because IE is treating it exactly as it is: a blob of
text with no file type, not an html document and is prompting you
download it as it has no way of guessing how to display it.
You may need to configure IE to display it within the browser in that
case and or try turning the output into an html file : Content=type
text/html\n\\n and then print some html out and see how it responds
|
|
|
|
|