Re: mod_perl headers

2003-03-03 Thread Cure
Ged Haywood wrote: Hi there, On Sun, 2 Mar 2003, Cure wrote: Does Apache submit headers when a error occurs ? Trying to display an error message to the browser. I use mason for the web, so if I have die() statement in my code mason will display the error to the browser. If I

Re: mod_perl headers

2003-03-03 Thread Perrin Harkins
Cure wrote: Does Apache submit headers when a error occurs ? No. You sent the headers with your send_http_header command. Mason doesn't have this issue because it waits and builds up the entire output in a string before it sends any headers out. You can do the same in your script if you want

Re: mod_perl headers

2003-03-03 Thread Cure
Perrin Harkins wrote: Cure wrote: Does Apache submit headers when a error occurs ? No. You sent the headers with your send_http_header command. Mason doesn't have this issue because it waits and builds up the entire output in a string before it sends any headers out. You can do the same

Re: mod_perl headers

2003-03-03 Thread Cure
and I used use CGI::Carp qw(fatalsToBrowser) in my script. It still didn't print the error to the browser Cure Perrin Harkins wrote: Cure wrote: Does Apache submit headers when a error occurs ? No. You sent the headers with your send_http_header command. Mason doesn't have this issue

Re: mod_perl headers

2003-03-03 Thread Perrin Harkins
Cure wrote: I know -- I submit the headers but why does it show the headers on the browser, doesn't that mean the headers wre submitted twice ? Why don't you take a look at the raw output (with LWP's GET script or something) and see? I misread your question before -- apache does send a

Re: mod_perl headers

2003-03-03 Thread Cure
Perrin Harkins wrote: Cure wrote: I know -- I submit the headers but why does it show the headers on the browser, doesn't that mean the headers wre submitted twice ? Why don't you take a look at the raw output (with LWP's GET script or something) and see? I misread your question before --

mod_perl headers

2003-03-02 Thread Cure
Does Apache submit headers when a error occurs ? Trying to display an error message to the browser. I use mason for the web, so if I have die() statement in my code mason will display the error to the browser. If I use an Apache handler - the error doesn't get displayed to the screen, not sure