ignore header_only()?

2000-08-04 Thread Nathan Torkington
I see some programmers don't check header_only(). Are there bad things in store if you don't? Or will Apache or the browser simply ignore the body that gets created? Nat

Re: ignore header_only()?

2000-08-04 Thread Vivek Khera
> "NT" == Nathan Torkington <[EMAIL PROTECTED]> writes: NT> I see some programmers don't check header_only(). Are there NT> bad things in store if you don't? Or will Apache or the browser NT> simply ignore the body that gets created? My experience is apache just tosses the body for you. T

Re: ignore header_only()?

2000-08-04 Thread Nathan Torkington
Thanks for the speedy response. You've now emboldened me to ask my second question: sometimes I see people not calling send_http_header() and yet their HTML still comes through. Does mod_perl sometimes automatically call this for you? Nat

Re: ignore header_only()?

2000-08-04 Thread Ajit Deshpande
On Fri, Aug 04, 2000 at 04:22:29PM -0600, Nathan Torkington wrote: > Thanks for the speedy response. You've now emboldened me to ask my > second question: sometimes I see people not calling send_http_header() > and yet their HTML still comes through. Does mod_perl sometimes > automatically call

Re: ignore header_only()?

2000-08-04 Thread Ken Fox
Ajit Deshpande wrote: > On Fri, Aug 04, 2000 at 04:22:29PM -0600, Nathan Torkington wrote: > > Thanks for the speedy response. You've now emboldened me to ask my > > second question: sometimes I see people not calling send_http_header() > > and yet their HTML still comes through. Does mod_perl s

Re: ignore header_only()?

2000-08-04 Thread Jeremy Howard
Ken Fox said: > Sorry to be a pain, but I still haven't heard anything back about my > proposal: > > Ken Fox wrote: > > I was using $request->sent_header and found out that it's > > not terribly useful if PerlSendHeader is off -- sent_header > > always returns 1. I changed mod_perl_sent_header so

Re: ignore header_only()?

2000-08-05 Thread Matt Sergeant
On Fri, 4 Aug 2000, Ken Fox wrote: > > I was using $request->sent_header and found out that it's > > not terribly useful if PerlSendHeader is off -- sent_header > > always returns 1. I changed mod_perl_sent_header so that > > it returns 0, 1 or 2: > > > > 0 - headers have not been sent (PerlSe

Re: ignore header_only()?

2000-08-05 Thread Eric Cholet
> Ken Fox wrote: > > I was using $request->sent_header and found out that it's > > not terribly useful if PerlSendHeader is off -- sent_header > > always returns 1. I changed mod_perl_sent_header so that > > it returns 0, 1 or 2: > > > > 0 - headers have not been sent (PerlSendHeader on) > >

Re: ignore header_only()?

2000-08-05 Thread Ken Williams
Ken Fox wrote: > I was using $request->sent_header and found out that it's > not terribly useful if PerlSendHeader is off -- sent_header > always returns 1. I changed mod_perl_sent_header so that > it returns 0, 1 or 2: > > 0 - headers have not been sent (PerlSendHeader on) > 1 - headers have

Re: ignore header_only()?

2000-08-05 Thread Ken Fox
Ken Williams wrote: > I know it was ages ago when you sent this patch, but what's the > rationale for having $r->sent_header() return 1 when it hasn't sent the > header? I didn't want to break anything. I'm hoping that people using sent_header are just checking for true, not for 1. (That's the wa

Re: ignore header_only()?

2000-08-07 Thread Dan Rench
On Fri, 4 Aug 2000, Vivek Khera wrote: > > "NT" == Nathan Torkington <[EMAIL PROTECTED]> writes: > > NT> I see some programmers don't check header_only(). Are there > NT> bad things in store if you don't? Or will Apache or the browser > NT> simply ignore the body that gets created? > > My