[users@httpd] how to free memory allocated using apr_palloc() - C Apache module

2017-11-27 Thread eeadev dev
As written in the subject, is there a way to deallocate memory which has been allocated using apr_palloc() and what is the best practice to do that? thank you

Re: [users@httpd] how to run one module before another

2017-11-03 Thread eeadev dev
also could please explain further what is the meaning of these aszSuc/aszPre? thank you 2017-11-03 9:23 GMT+01:00 eeadev dev <eea...@gmail.com>: > thanks Eric, but what if they are custom modules? > > 2017-11-02 19:58 GMT+01:00 Eric Covener <cove...@gmail.com>: > &

Re: [users@httpd] how to run one module before another

2017-11-03 Thread eeadev dev
thanks Eric, but what if they are custom modules? 2017-11-02 19:58 GMT+01:00 Eric Covener <cove...@gmail.com>: > grep for aszSuc/aszPre in a few standard modules. > > On Thu, Nov 2, 2017 at 2:14 PM, eeadev dev <eea...@gmail.com> wrote: > > How can I decide the orde

[users@httpd] how to run one module before another

2017-11-02 Thread eeadev dev
How can I decide the order of two module or at least having one always running before another one? thanks

[users@httpd] header out working in local apache but not on development environment

2017-10-26 Thread eeadev dev
I used this apache C function *apr_table_addn(r->err_headers_out , "Remote-Proxy-User", "UserUpn=ME");* I can see the result in my chrome dev tool when I use it in an apache running locally but It does not work in the development environment. what could be the reason? Thank you

[users@httpd] Module per crypt/decrypt using base64 coding

2017-10-25 Thread eeadev dev
HI all, is there a module that does it? I want to see its source code? Thanks

Re: [users@httpd] how to include ssl lib when running apxs

2017-10-18 Thread eeadev dev
RY_PATH}:/PATH/TO/OPENSSL/LIB" > > 2017-10-17 19:04 GMT+02:00 eeadev dev <eea...@gmail.com>: > > I am compiling my apache c module using this > > > > sudo apxs -i -a -c mod_ex.c > > > > now I need to use the lib openssl > > > > what should I u

[users@httpd] how to include ssl lib when running apxs

2017-10-17 Thread eeadev dev
I am compiling my apache c module using this sudo apxs -i -a -c mod_ex.c now I need to use the lib openssl what should I use to include this lib, I tried with adding this option: -I /usr/include/openssl but it still seems that it does find some function. Please how shall I do to include it?

Re: [users@httpd] Where does ap_rprintf actually print out?

2017-10-13 Thread eeadev dev
thanks, in the console browser? 2017-10-13 3:03 GMT-07:00 Daniel Gruno <humbed...@apache.org>: > On 10/13/2017 11:53 AM, eeadev dev wrote: > > Writing an apache C module I tried this function: > > > > https://ci.apache.org/projects/httpd/trunk/doxygen/ > g

[users@httpd] Where does ap_rprintf actually print out?

2017-10-13 Thread eeadev dev
Writing an apache C module I tried this function: https://ci.apache.org/projects/httpd/trunk/doxygen/group__APACHE__CORE__PROTO.html#ga5e91eb6ca777c9a427b2e82bf1eeb81d but I dont know where it does print out. Does it in any specific file? I called it this way: ap_rprintf(r, "print out!"); and

[users@httpd] how to exit a C Apache module

2017-10-12 Thread eeadev dev
I tried with the C exit() but it returns a page with this content: *The connection was resetThe connection to the server was reset while the page was loading.The site could be temporarily unavailable or too busy. Try again in a few moments.If you are unable to load any pages, check

[users@httpd] how to deploy custom C modules on Apache

2017-10-10 Thread eeadev dev
I created my custom module starting from an existing module source code; now I need to deploy it in the development environment and later on the test environment. Please I need to know the steps to do that. what should I do other than 1) launching this command: /usr/bin/apxs2 -i -n mymod

Re: [users@httpd] how to get the expiration date of a cookie

2017-10-06 Thread eeadev dev
is not this meant to be the mailing list of apache? I d need to get this info using C and the apr_library, not java unfortunately 2017-10-06 2:18 GMT-07:00 Suvendu Sekhar Mondal <suv3...@gmail.com>: > On Fri, Oct 6, 2017 at 1:13 PM, eeadev dev <eea...@gmail.com> wrote: > >

[users@httpd] how to get the expiration date of a cookie

2017-10-06 Thread eeadev dev
I cannot find a place where is written how to get the expiration date of the cookie I set. Please anyone knows how to do that? thanks

Re: [users@httpd] how to simply set a cookie?

2017-09-29 Thread eeadev dev
thank you. yes, it is under the header but what if I want to see it under "cookies". is it possible with apache? 2017-09-29 5:38 GMT-07:00 Eric Covener <cove...@gmail.com>: > On Fri, Sep 29, 2017 at 8:27 AM, eeadev dev <eea...@gmail.com> wrote: >

[users@httpd] how to simply set a cookie?

2017-09-29 Thread eeadev dev
I tried with this function apr_table_add(r->headers_out,"Set-Cookie","doodle=hello"); but I am not seeing the cookie I set when querying my website in chrome dev tool under application->storage->Cookies Thanks

Re: [users@httpd] how to externally redirect?

2017-09-21 Thread eeadev dev
oduleA where moduleA is my module name. Do u know how to avoid it? thank you again! 2017-09-20 10:47 GMT-07:00 Eric Covener <cove...@gmail.com>: > I meant read it an editor of your choice to see how it's done. > > On Wed, Sep 20, 2017 at 11:21 AM, eeadev dev <eea...@gmail.com> wrote:

Re: [users@httpd] how to externally redirect?

2017-09-20 Thread eeadev dev
shall I import the mod_alias.c file in my project or if I install the module mod_alias.c, I can use its functions? 2017-09-20 16:34 GMT+02:00 Eric Covener <cove...@gmail.com>: > > > On Wed, Sep 20, 2017 at 10:31 AM, eeadev dev <eea...@gmail.com> wrote: > >> how can

[users@httpd] how to externally redirect?

2017-09-20 Thread eeadev dev
how can I redirect externally from my module? for instance under certain condition I need to go to www.google.com I saw this api void ap_internal_redirect

Re: [users@httpd] setting getting variable to be changed in production and read in my C module

2017-09-20 Thread eeadev dev
actually noone is working "${VAR_NAME}" nor $VAR_NAME nor VAR_NAME 2017-09-20 5:07 GMT-07:00 eeadev dev <eea...@gmail.com>: > is there anything similar but related to my module? > for instance, now I have mymodule.conf I would prefer to write it there > than

Re: [users@httpd] setting getting variable to be changed in production and read in my C module

2017-09-20 Thread eeadev dev
Wed, Sep 20, 2017 at 1:11 PM, Yann Ylavic <ylavic@gmail.com> wrote: > > On Wed, Sep 20, 2017 at 12:58 PM, Yann Ylavic <ylavic@gmail.com> > wrote: > >> On Wed, Sep 20, 2017 at 11:55 AM, eeadev dev <eea...@gmail.com> wrote: > >>> I have to w

[users@httpd] setting getting variable to be changed in production and read in my C module

2017-09-20 Thread eeadev dev
I have to write a set of variable to be read from my C module. Those variable could be change when the code is in production, similar to what u would write in a java properties file. What is the proper way to do it and which functions to use? 1. write the in the httpd.conf (what is the API

Re: [users@httpd] how to get apr_pool_t when need to call ap_md5

2017-09-18 Thread eeadev dev
thank u, Eric. I just saw your reply. 2017-09-07 16:54 GMT-07:00 Eric Covener <cove...@gmail.com>: > On Thu, Sep 7, 2017 at 12:07 PM, eeadev dev <eea...@gmail.com> wrote: > > In my function I need to get the checksum using md5. > > > > I saw that there i

[users@httpd] how to get apr_pool_t when need to call ap_md5

2017-09-07 Thread eeadev dev
In my function I need to get the checksum using md5. I saw that there is this function ap_md5(apr_pool_t *a, const unsigned char *string); but it needs apr_pool_t how can I get it? char key[] = "abc"; key_md5 = ap_md5(mem_pool, key);