Role-based access control module

2011-04-11 Thread Whut  Jia
HI,all Are there some Role-based access control modules now?? Thanks, Jia.

Re:Re: how to parse html content in handler

2011-03-24 Thread Whut Jia
-24 20:25:11,"Ben Noordhuis" wrote: >On Thu, Mar 24, 2011 at 13:10, Whut Jia wrote: >> Hi,all >> I want to parse a html content and withdraw some element in myself apache >> handler.Please ask how to do it. >> Thanks, >> Jia > >Hey, have a l

Re:Re: not initial const aplog_module_index

2011-03-08 Thread Whut Jia
Error is come from http_log.h header file . When I don't inclue this file and don't use ap_log_rerror function,everything is OK! At 2011-03-08 16:23:34,"Andrew Godziuk" wrote: >You could try enclosing the header file in > >extern "C" { >... >} > >but it's not an ellegant solution. > >--

not initial const aplog_module_index

2011-03-08 Thread Whut Jia
Hi,all when I compile myself module source file (in c++ language)with g++,it accures error below: http_log.h:121:not initial const aplog_module_index. But,it is all right when I compile a module in c language with apxs tool.Why??Please help me! My apache version is httpd-2.3.8, Thanks!

Re:Re: How to send a jpeg-file in Handler

2011-01-19 Thread Whut Jia
Can I don't use sub-request?? I want only a single picture to client;Just like the same as sending a text : r->content_type="text/html"; ap_rputs("helloworld",r); return OK; Please help me ! Thanks, ajxs At 2011-01-19 20:22:52,"Ben Noordhuis" wrote: >

How to send a jpeg-file in Handler

2011-01-19 Thread Whut Jia
Hi all, I want to return a local jpeg-file to client when client request url is /image/metto .In handler module ,I should how to write?? Thanks, ajxs.

Re:Re: How to add a cookie header in response headers when do external redirect?

2011-01-19 Thread Whut Jia
Hello Eric Covener Thank you for your answer.Your are right. At 2011-01-17 20:41:13,"" wrote: >2011/1/17 Whut Jia : >> Hi, >> I want to save accessed uri into response cookie before doing a external >> redirect,according this way below: >> apr_table

How to add a cookie header in response headers when do external redirect?

2011-01-17 Thread Whut Jia
Hi, I want to save accessed uri into response cookie before doing a external redirect,according this way below: apr_table_setn(r->headers_out,"Location","http://www.idp.com/login.jsp";); apr_table_setn(r->headers_out,"Set-Cookie",r->uri); return HTTP_SEE_OTHER; But in client ,I cannot always find

How to add referer header in external redirect?

2011-01-16 Thread Whut Jia
Hi all, I need some help with a redirecting/referrer issue. If I do a 303 redirect in my module (by this way below: apr_table_setn(r->headers_out,"Location","http://idp/login.html";); return HTTP_SEE_OTHER;) In order to I can see the referrer header when jumping to the new page,how do I solve th