Rasmus (ups101): Here's how to get at the HttpWorkerRequest from within a BeginRequest handler (I found it in another thread): private void OnBeginRequest(object src, EventArgs e) { HttpApplication app = (HttpApplication)src; HttpWorkerRequest workerRequest
= (HttpWorkerRequest)app.Context.GetType() .GetProperty("WorkerRequest", (BindingFlags)36) .GetValue(app.Context, null); } Also of interest, here's what I found on "ending a request" in an HttpModule: The HttpApplication object exposes the CompleteRequest
method. If an HTTP module's event handler calls HttpApplication.CompleteRequest, normal pipeline processing is interrupted after the current event completes (including the processing of any other registered event handlers). A module that terminates the normal
processing of a message is expected to generate an appropriate HTTP response message. Given the above, along with ReadEntityBody() maybe we can make this work correctly... Please post your results! J B. Podolak
J B. Podolak
Member
30 Points
6 Posts
Re: HttpHandler or HttpModule for file upload, large files, progress indicator?
Dec 16, 2002 06:34 PM|LINK