[Denver-pm] perl cgi-bin and Content Type?
Jon
three18ti at gmail.com
Tue Nov 11 19:39:35 PST 2014
Hey Robert,
LONG time since I last wrote a CGI script.
Shouldn't it be \r\n in the doctype declaration?
print "Content-Type: text/html; charset=ISO-8859-1\r\n";
I could be wrong, but I have vague flashbacks of the doctype causing me
horrible headaches....
Again, I could be way off, but you can call me names after you try it ;)
Best Regards,
Jon A
On Nov 11, 2014 7:34 PM, "Robert L. Harris" <robert.l.harris at gmail.com>
wrote:
>
> 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
>
>
> _______________________________________________
> Denver-pm mailing list
> Denver-pm at pm.org
> http://mail.pm.org/mailman/listinfo/denver-pm
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/denver-pm/attachments/20141111/f3fcc55a/attachment.html>
More information about the Denver-pm
mailing list