LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 05-10-2004, 12:55 AM   #1
johnensd
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
Question use CGI vs. content-type: text/html


I get a Server Error 500, Premature end of script: whatever.cgi

This only happens when I use "use CGI" instead of content-type: text/html in the code of the cgi file. I run the cgi file from the command prompt using "perl whatever.cgi" and I get the expected output with no error messages and using -w. Whenever I run a cgi using content-type: text/html, it loads in the browser no problem. Both files are in the same folder and both have the same permissions. I've been all over the forum and tried every trick I can find here, but I still have the same problem. What am I missing???

PLEASE HELP!!

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
installing redhat 8.0 when text login in I cannot type password?? I type root scrist Linux - General 4 04-22-2006 03:20 AM
Replace text of unknown content with other text in file brian0918 Programming 15 07-14-2005 10:22 PM
Replace text of unknown content with other text in file brian0918 Linux - Software 1 07-14-2005 04:22 PM
Cookie Sharing Between CGI generated HTML pages and standard HTML pages rkwhited Linux - Newbie 5 08-15-2004 08:39 AM
set content-type to 'text/html' in sendmail, using perl script brokenfeet Programming 3 08-05-2003 03:12 PM


All times are GMT -5. The time now is 12:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration