<p dir="ltr">Hey Robert,</p>
<p dir="ltr">LONG time since I last wrote a CGI script. </p>
<p dir="ltr">Shouldn't it be \r\n in the doctype declaration? </p>
<p dir="ltr">print "Content-Type: text/html; charset=ISO-8859-1\r\n";</p>
<p dir="ltr">I could be wrong, but I have vague flashbacks of the doctype causing me horrible headaches....</p>
<p dir="ltr">Again, I could be way off, but you can call me names after you try it ;)</p>
<p dir="ltr">Best Regards,<br>
Jon A</p>
<div class="gmail_quote">On Nov 11, 2014 7:34 PM, "Robert L. Harris" <<a href="mailto:robert.l.harris@gmail.com">robert.l.harris@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><div>  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 :</div><div><br></div><div><div>Content-Type: text/html; charset=ISO-8859-1</div><div><br></div><div><HTML><HEAD><br></div><div>.</div></div><div>.</div><div>.</div><div><br></div><div>I use 2 print statements.  </div><div><br></div><div><div>  print "Content-Type: text/html; charset=ISO-8859-1\n\n";</div></div><div><div>  print "<HTML><HEAD>\n";</div></div><div><br></div><div>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?</div><div><br></div><div>Robert</div><div><br></div>
<br>_______________________________________________<br>
Denver-pm mailing list<br>
<a href="mailto:Denver-pm@pm.org">Denver-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/denver-pm" target="_blank">http://mail.pm.org/mailman/listinfo/denver-pm</a><br>
<br></blockquote></div>