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
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
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
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
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
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 --
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