Re: Modifying http->uri in clientRedirectDone

From: harsha_en <harsha_en_at_yahoo.co.uk>
Date: Fri, 11 Jul 2008 07:42:43 -0700 (PDT)

Hi,

I thought redirect.location needs to be updated to indicate there's a
change. However if this is not necessary I can ignore this.

Why the web application don't see the new uri when I set a new value to
http->uri variable?

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-tp18404307p18405460.html
Sent from the Squid - Development mailing list archive at Nabble.com.
Received on Fri Jul 11 2008 - 14:42:45 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 11 2008 - 12:00:04 MDT