Re: modify request_rec->args

2016-03-25 Thread Justin Kennedy
I was able to get it to work, by modifying r->args directly. Not sure why changing the pointer didn't work, but maybe there was a flaw in my testing. Thanks for the help. On 25 March 2016 at 11:24, Eric Covener wrote: > On Fri, Mar 25, 2016 at 10:22 AM, Justin Kennedy > wrote: > > The plan is f

Re: modify request_rec->args

2016-03-25 Thread Eric Covener
On Fri, Mar 25, 2016 at 10:22 AM, Justin Kennedy wrote: > The plan is for the module to do other things, this is just the first step. > Any suggestions? Thank you. It should work. Who sees the unchanged query string? I think it exists in apr_uri_t form somewhere too. -- Eric Covener cove...@gm

Re: modify request_rec->args

2016-03-25 Thread Justin Kennedy
Hi Sorin, The plan is for the module to do other things, this is just the first step. Any suggestions? Thank you. On 25 March 2016 at 05:30, Sorin Manolache wrote: > On 2016-03-25 00:59, Justin Kennedy wrote: > >> Hello, >> >> I have a simple module, with just a quick_hander, it's sole function

Re: modify request_rec->args

2016-03-25 Thread Sorin Manolache
On 2016-03-25 00:59, Justin Kennedy wrote: Hello, I have a simple module, with just a quick_hander, it's sole function is to check if there is a specific key=value on the query string, and modify the value, so it gets picked up by a separate module. For example: if "foo=1" is in r->args, then r

Re: modify request_rec->args

2016-03-24 Thread Luca Toscano
Hello Justin! 2016-03-25 0:59 GMT+01:00 Justin Kennedy : > Hello, > > I have a simple module, with just a quick_hander, it's sole function is to > check if there is a specific key=value on the query string, and modify the > value, so it gets picked up by a separate module. > > For example: if "fo

modify request_rec->args

2016-03-24 Thread Justin Kennedy
Hello, I have a simple module, with just a quick_hander, it's sole function is to check if there is a specific key=value on the query string, and modify the value, so it gets picked up by a separate module. For example: if "foo=1" is in r->args, then replace it with "foo=0", decline the request s