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 in your script if you want to.
Take a look at http://perl.apache.org/docs/1.0/guide/snippets.html#Redirecting_Errors_to_the_Client_Instead_of_error_log for more info on these issues.
$r->('HI');
That's not a method of $r. Don't do that.
- Perrin
I had $r->print('HI') in my script. I made a typo when typing into this document.
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 ?
error -->
hiHTTP/1.1 200 OK Date: Mon, 03 Mar 2003 04:34:04 GMT Server: Apache/1.3.26 (Win32) mod_perl/1.27_01-dev Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=iso-8859-1
OK
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.