Ged Haywood wrote:
Hello there,

On Sat, 24 Jan 2004, semuel wrote:


you don't need to "\r\n\r\n". "\n\n" will do the job.


According to the standard you should send both \r and \n.
It is bad practice to play fast and loose with standards.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html

Not if you use Apache. It does the right thing with "\n\n" for you, because it parses your headers and strips "\n\n" anyway, adding other HTTP headers and terminating each with "\r\n".


Of course if you use non-parsed-headers scripts/handlers, then you are on your own to do the right things.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to