Without using reflection, the easiest way would be to use the RewritePath function for the current HttpContext object to modify the request.
Using IHttpModule , it might look something like this:
context.RewritePath(context.Request.Path, context.Request.PathInfo, newQueryStringHere!);
Hope this helps!
source
share