Re: Modifying http->uri in clientRedirectDone

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Fri, 11 Jul 2008 16:19:00 +0200

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

Received on Fri Jul 11 2008 - 14:19:05 MDT

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