You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2012/05/09 04:39:55 UTC

svn commit: r1335903 - /httpd/httpd/trunk/docs/manual/howto/cgi.xml

Author: rbowen
Date: Wed May  9 02:39:55 2012
New Revision: 1335903

URL: http://svn.apache.org/viewvc?rev=1335903&view=rev
Log:
Might as well be pedantic while we're at it.

Modified:
    httpd/httpd/trunk/docs/manual/howto/cgi.xml

Modified: httpd/httpd/trunk/docs/manual/howto/cgi.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/howto/cgi.xml?rev=1335903&r1=1335902&r2=1335903&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/howto/cgi.xml (original)
+++ httpd/httpd/trunk/docs/manual/howto/cgi.xml Wed May  9 02:39:55 2012
@@ -234,7 +234,7 @@
 
       <highlight language="perl">
 #!/usr/bin/perl
-print "Content-type: text/html\n\n";
+print "Content-type: text/html\r\n\r\n";
 print "Hello, World.";
       </highlight>
 
@@ -488,7 +488,7 @@ print "Hello, World.";
 use strict;
 use warnings;
 
-print "Content-type: text/html\n\n";
+print "Content-type: text/html\r\n\r\n";
 foreach my $key (keys %ENV) {
     print "$key --&gt; $ENV{$key}&lt;br&gt;";
 }



Re: svn commit: r1335903 - /httpd/httpd/trunk/docs/manual/howto/cgi.xml

Posted by André Malo <nd...@perlig.de>.
On Wednesday 09 May 2012 04:39:55 rbowen@apache.org wrote:
> -print "Content-type: text/html\n\n";
> +print "Content-type: text/html\r\n\r\n";

I think, that's not needed, actually. IIRC mod_cgi works fine with both. (On 
windows it may be even wrong, if perl/stdio inserts \r automatically, but 
it's too long ago. I don't remember that part clearly).

nd

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org