module using C++ library

2013-03-06 Thread Somostetoi Kilato
Hi, I have a C++ shared library with a lot of utile things and I built my module against it. I copied it into bin then in module folder but even so the server does not find it. What I am missing here? The error is: /home/xyz/indian/conf/httpd.conf: Cannot load modules/mod_xyz.so into server:

Re: some key fields of request_rec are null (corrected message)

2013-03-06 Thread Nce Rt
A custom handler which is registered to run first(APR_HOOK_FIRST) has these fields null when processing http request:       r-content_type, r-parsed_uri.scheme the http request on the wire has the content_type header set. r-parsed_uri.path is not null though. apache is configured as reverse

Re: some key fields of request_rec are null

2013-03-06 Thread Eric Covener
On Wed, Mar 6, 2013 at 4:21 PM, Nce Rt nce...@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

Re: some key fields of request_rec are null

2013-03-06 Thread Nce Rt
A custom handler which is registered to run first(APR_HOOK_FIRST) has these fields null when processing http request:       r-content_type, r-parsed_uri.scheme  wherer is a pointer to request_rec the http request on the wire has the content_type header set. r-parsed_uri.path is not null

Re: some key fields of request_rec are null

2013-03-06 Thread Nce Rt
It's request_rec which represents http Request not Response. look into this data structure for the content-type field. From: Eric Covener cove...@gmail.com To: modules-dev@httpd.apache.org; Nce Rt nce...@yahoo.com Sent: Wednesday, March 6, 2013 2:50 PM

Re: some key fields of request_rec are null

2013-03-06 Thread Eric Covener
On Wed, Mar 6, 2013 at 6:34 PM, Nce Rt nce...@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.

Re: state management in handlers

2013-03-06 Thread Joe Lewis
Probably not, because you will have to cater to the MPM - e.g. use shared memory if a subsequent request comes into a different process. I'd suggest using shared memory (there are apr routines to do that), and that should guarantee that state will be shared between different threads or processes.