asp.net - IIS Integrated Request Processing Pipeline -- Modify Request -


i want implement isapi filter feature using httpmodule in iis7 running under iis integrated request processing pipeline mode.

the goal @ incoming request @ web server level, , inject custom httpheaders request. (for ex: http\_eauth\_id)

and later in page lifecycle of aspx page, should able use variable as

string eauthid = request.servervariables["http\_eauth\_id"].tostring(); 

so implementing module @ web server level, possible alter servervariables collection ??

httprequest.servervariables property read-only collection. so, cannot directly modify that. suggest storing custom data in httpcontext (or global application object or database) httpmodule , reading shared value in aspx page.

if still want modify server variables, there hack technique mentioned in thread using reflection.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -