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 Thu, 07 Mar 2013 19:14:56 GMT
I guess I shouldn't have just relied on the code comments in httpd.h(ver 2.2) for this field:
/** The content-type for the current request */

const char *content_type;

Thanks again.

________________________________
 From: Eric Covener <covener@gmail.com>
To: modules-dev@httpd.apache.org; Nce Rt <nce_rt@yahoo.com> 
Sent: Wednesday, March 6, 2013 4:23 PM
Subject: Re: some key fields of request_rec are null
 
On Wed, Mar 6, 2013 at 6:34 PM, Nce Rt <nce_rt@yahoo.com> wrote:
> It's request_rec which represents http Request not Response. look into this data structure
for the content-type field.

That's not how the field is used.  If you want to read a Content-Type
request header, read it from r->headers_in.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message