[San-Diego-pm] SSI problem
Chris Grau
chris at chrisgrau.com
Wed Apr 4 17:48:14 PDT 2007
On Wed, Apr 04, 2007 at 05:18:26PM -0700, billdav at cox.net wrote:
> ---- Chris Grau <chris at chrisgrau.com> wrote:
> > print "Content-Type: text/html
>
> ";
>
> Actually, it should be:
>
> print "Content-Type: text/html
>
> ";
>
> ftp://ftp.isi.edu/in-notes/rfc2616.txt:
>
> HTTP/1.1 defines the sequence CR LF as the end-of-line marker for all
> protocol elements except the entity-body (see appendix 19.3 for
> tolerant applications). The end-of-line marker within an entity-body
> is defined by its associated media type, as described in section 3.7.
Doesn't really matter. Apache's mod_cgi intercepts the headers and does
some fixup to them anyway. One would have to be writing a non-parsed
headers script before worrying about the CR LF issue, and I haven't seen
one of those in years.
[cgrau at grue ~]$ more /var/www/cgi-bin/test.cgi
#!/usr/bin/perl
print "Content-Type: text/html\n\n";
print "<b>Hello, world</b>\n";
[cgrau at grue ~]$ HEAD http://grue.rezrov.org/cgi-bin/test.cgi
200 OK
Connection: close
Date: Thu, 05 Apr 2007 00:46:12 GMT
Server: Apache/2.0.52 (CentOS)
Content-Type: text/html; charset=UTF-8
Client-Date: Thu, 05 Apr 2007 00:46:12 GMT
Client-Peer: 216.104.166.130:80
Client-Response-Num: 1
-chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/san-diego-pm/attachments/20070404/ee7a7552/attachment.bin
More information about the San-Diego-pm
mailing list