Re: ErrorState structure question

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 24 Dec 2001 12:11:48 +0100

The headers are in ErrorState->request->header, accessed via the
httpHeaderGet* family of calls.

Regards
Henrik Nordström
MARA Systems AB

On Sunday 23 December 2001 22.50, Allen Wittenauer wrote:
> Howdy.
>
> Hopefully an easy question... I'd like to get one of the HTTP
> headers of the client when they generate an error that would cause the
> user to end up in the errorpage.c code, so that I could print a
> different message based upon the browser's settings (Accept-blah).
>
> It would appear that ErrorState->request is a complete copy of the
> user's request_t structure. So, HTTP headers would appear in
> ErrorState->request->header, correct? Or, do I need to manually parse
> ErrorState->request_hdrs to pull out the specific entries I'm looking
> for?
>
> Thanks.
Received on Mon Dec 24 2001 - 04:21:03 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:41 MST