in reply to Re^3: CGI script gives "internal server error"
in thread CGI script gives "internal server error"

Thanks, you are right. After putting new line after the "END_OF_HTML" , the script is working fine.
  • Comment on Re^4: CGI script gives "internal server error"