Re: Modifying http->uri in clientRedirectDone

From: harsha_en <harsha_en_at_yahoo.co.uk>
Date: Fri, 11 Jul 2008 08:00:51 -0700 (PDT)

Hi,

>
>Why? Is't it easier to modify the url_rewrite helper instead?
>

I'm capturing a url parameter added via url_rewrite helper. Once the
parameter is captured I want to set the uri back to the original uri instead
of new uri set via url_rewrite helper.

Thanks,
Harsha

Henrik Nordstrom-5 wrote:
>
> On fre, 2008-07-11 at 06:49 -0700, harsha_en wrote:
>> Dear All,
>>
>> I want to modify the URL received via url_rewrite_program. In oredr to
>> achieve this I modified ClientRequestContext::clientRedirectDone method
>> by
>> updating http->uri and http->redirect.location variables. Following is
>> the
>> code i used,
>
> Why? Is't it easier to modify the url_rewrite helper instead?
>
>> http->uri = xstrdup(modified_uri);
>> http->redirect.location = xstrdup(modified_uri);
>
> Are you sure you want to set redirect.location? This is used for browser
> redirects....
>
> Regards
> Henrik
>
>
>

-- 
View this message in context: http://www.nabble.com/Modifying-http-%3Euri-in-clientRedirectDone-tp18404307p18405862.html
Sent from the Squid - Development mailing list archive at Nabble.com.
Received on Fri Jul 11 2008 - 15:00:57 MDT

This archive was generated by hypermail 2.2.0 : Sat Jul 12 2008 - 12:00:05 MDT