[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] CGI on RaQ2 ... ???



Rusty,

That would work from a terminal or telnet session, but not as a web page
because you have to tell the machine what kind of data to expect. If you
insert the following line before the print statement, it should work
both ways:

print "Content-type: text/html\n\n" ;


> Rusty Wires wrote:
> 
> Can anyone point me to some documentation on how the perl works on a
> RaQ2.  I have a perl script that will work from the shell over telnet
> (./test.cgi) however the webserver reports that there was an error:
>     "The server encountered an internal error or misconfiguration and
> was unable to complete your request"
> The script is very simple for testing.
>     #!/usr/bin/perl
> 
>     print "test\n";
> 
> The preconfigured script "gform" works, however only after the file
> name was changed to "gform.cgi"
> 
> -rwxr-xr-x   1 exxxst   site##        33 Jan 19 13:40 test.pl
> 
> I am totally lost so any advice would be more than helpful.
> 
> Thanks in advance,
> dcup@xxxxxxxxxxxxx

-- 
Clayton McGow		        
support@xxxxxxxxxxx		
http://www.atoznet.com