httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiffin Gish <>
Subject Re: ap_custom_response content type 'text/xml'
Date Thu, 26 Jun 2008 12:30:37 GMT
´╗┐What do you mean by a special uri space? You're not referring to
something like a separate cgi-script are you? That's exactly what I was
trying top get away from by implementing ap_custom_response() in the
first place...

On Thu, 2008-06-26 at 06:56 -0400, Jeff Trawick wrote:
> On Thu, Jun 26, 2008 at 3:33 AM, Kiffin Gish <>
> wrote:
>         In order to reply with my own xml error, I want to use
>         ap_custom_response(r, HTTP_INTERNAL_SERVER_ERROR, xml);
>         However, default content type is "text/html". If I try to
>         change it by
>         using ap_set_content_type(r, "text/xml"), this has no effect.
> (The ap_custom_response() API is busted and needs to allow (FORCE) the
> caller to pass in the content type/charset to associate with the
> response text.)
> You can pass a URI to ap_custom_response (as on the ErrorDocument
> directive) to redirect error requests to a special uri space, and
> implement a handler for those which can control the response more
> fully.
> (Hopefully there are some better ideas out there.)
Kiffin Gish | Desktop & Services Development | TomTom | | +31 (0)
6 15529214 mobile | +31 (0) 20 757 5000 office

This e-mail message contains information which is confidential and may be privileged. It is
intended for use by the addressee only. If you are not the intended addressee, we request
that you notify the sender immediately and delete or destroy this e-mail message and any attachment(s),
without copying, saving, forwarding, disclosing or using its contents in any other way. TomTom
N.V., TomTom International BV or any other company belonging to the TomTom group of companies
will not be liable for damage relating to the communication by e-mail of data, documents or
any other information.

View raw message