[Denver-pm] perl cgi-bin and Content Type?

Robert L. Harris robert.l.harris at gmail.com
Tue Nov 11 19:34:35 PST 2014


  I have a simple perl script which is supposed to run as a CGI to create
some html output.  The start of the output looks like :

Content-Type: text/html; charset=ISO-8859-1

<HTML><HEAD>
.
.
.

I use 2 print statements.

  print "Content-Type: text/html; charset=ISO-8859-1\n\n";
  print "<HTML><HEAD>\n";

What I've noticed is that if I don't put the two carriage returns I get a
500 error.  If I put the two carriage returns I get output but it's not
processing the stylesheet information which follows.  Anyone have any ideas
or a POST example perl script which uses stylesheets I can pick apart?

Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/denver-pm/attachments/20141112/a3fb7803/attachment.html>


More information about the Denver-pm mailing list