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

Robert L. Harris robert.l.harris at gmail.com
Wed Nov 12 04:35:22 PST 2014


Bingo, that did it. Thank you!

On Tue, Nov 11, 2014, 21:33 Larry Leszczynski <larryl at emailplus.org> wrote:

> Hi Robert -
>
> The HTTP spec says that lines should end with CR LF, and that you need a
> blank line after the last header and before the body. So your first
> example with two carriage returns is correct (except you should probably
> use "\r\n\r\n" instead of "\n\n").  There must be something else going
> on that is causing trouble with the style sheet info - can you post a
> more complete example?
>
> Larry
>
> On Tue, Nov 11, 2014, at 08:34 PM, Robert L. Harris 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
> _______________________________________________
> 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/20141112/81d51f7b/attachment.html>


More information about the Denver-pm mailing list