httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nce Rt <nce...@yahoo.com>
Subject Re: some key fields of request_rec are null
Date Wed, 06 Mar 2013 23:34:08 GMT
It's request_rec which represents http Request not Response. look into this data structure
for the content-type field.


________________________________
 From: Eric Covener <covener@gmail.com>
To: modules-dev@httpd.apache.org; Nce Rt <nce_rt@yahoo.com> 
Sent: Wednesday, March 6, 2013 2:50 PM
Subject: Re: some key fields of request_rec are null
 
On Wed, Mar 6, 2013 at 4:21 PM, Nce Rt <nce_rt@yahoo.com> wrote:
>
>
> A custom handler which is registered to run APR_HOOK_FIRST has these fields null when
processing http request:
>      r->content_type, r->parsed_uri.scheme

r->content_type is not related to any request header -- it's the
response content type.  It won't be set early, before a response is
generated.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message