At 02:09 PM 07/25/2001 +0530, Rahul Garg wrote:

>the same program i am running independently on telnet with command line
arguments , is running perfectly........but thru browser its not
working..the problem its giving is as follows  ..................
> 
>the code goes like this :
>
># !usr/bin/perl -w
>use CGI;
>$query =new CGI ;
>print <<"Endoftext";
>Content-type: text/html
><html>........</html>

You're not sending out a valid HTTP header. Either add two newlines after
the Content-type header, OR just use the CGI.pm 'header' function to print
the header for you. 

Since you've gone through the trouble of use-ing CGI.pm, you might as well
use its functions instead of printing the headers out yourself.

Aloha,
mel


--
mel matsuoka                    Hawaiian Image Productions
Chief Executive Alphageek              (vox)1.808.531.5474
[EMAIL PROTECTED]                  (fax)1.808.526.4040

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to