<p>Here's a wierd one. I'm reusing a code base that unfortunately must not be updated. This code makes a call to <code>HttpContext.Current.Request.QueryString</code>. Ideally, I need to push a value into this collection with every request that is made. Is this possible - perhaps in an HTTP Module?</p>

[{'answer_id': 34375, 'author': 'Espo', 'author_id': 2257, 'author_profile': 'https://Stackoverflow.com/users/2257', 'pm_score': 4, 'selected': True, 'text': '<p>Without using reflection, the simplest way to do it would be to use the RewritePath function on the current HttpContext object in order to modify the querystring. </p>\n\n<p>Using an <a href="http://msdn.microsoft.com/en-us/library/system.web.ihttpmodule.aspx" rel="noreferrer">IHttpModule</a>, it might look something like:</p>\n\n<pre><code>context.RewritePath(context.Request.Path, context.Request.PathInfo, newQueryStringHere!);\n</code></pre>\n\n<p>Hope this helps!</p>\n'}, {'answer_id': 36809, 'author': 'Andrei Rînea', 'author_id': 1796, 'author_profile': 'https://Stackoverflow.com/users/1796', 'pm_score': 0, 'selected': False, 'text': "<p>Ditto Espo's answer and I would like to add that usually in medium trust (specific to many shared hostings) you will not have access to reflection so ... RewritePath will remain your probably only choice.</p>\n"}]
['https://Stackoverflow.com/questions/34365', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1735/']