[Mono-devel-list] HttpWorkerRequest

Joe Audette joe_audette at yahoo.com
Wed Dec 15 16:26:18 EST 2004

Do you agree that this method:
HttpWorkerRequest GetWorkerRequest(HttpContext context) 
 IServiceProvider provider = (IServiceProvider)HttpContext.Current; 

return (HttpWorkerRequest)provider.GetService(typeof(HttpWorkerRequest));  
should return  either XSPWorkerRequest or ModMonoWorkerRequest and calling
.GetPreLoadedEntityBody()  or ReadEntityBody() on either of these objects should not return null
Its a missing feature somewhere isn't it? Bottom line the code works on windows and is not using any P/Invoke stuff, just managed code, so if not a bug then a missing feature that is needed to make mono more compatible.
Should I enter bugzilla or not? I wrote to the author of the HttpUpload module to get him to help me articulate what is needed and was planning to enter a bugzilla.
Yes I thought the code was using HttpWorkerRequest and didn't realize it was using a subclass but whatever subclass is returned from the method above should be capable of returning something more useful than null when you call its methods, that is what happens on windows. 
I am not the author of the code, but I'm doing the best I can to show you that something is wrong or it would work on mono as it does on windows.  It is very useful code to be able to have controlled upload of large files with a progress indicator, it will be a shame if only windows installations of my app can take advantage of that feature.
Best Regards,

Gonzalo Paniagua Javier <gonzalo at ximian.com> wrote:
On Wed, 2004-12-15 at 17:37 -0200, Rafael Teixeira wrote:
> Well this is some internal class from the .NET implementation as it
> isn't documented in MSDN.
> In Mono we have some subclass of MonoWorkerRequest (either
> XSPWorkerRequest or ModMonoWorkerRequest). These classes are the ones
> that return null for GetPreLoadedEntityBody().
> Could you please fill a bugzilla, giving some more details of what is
> expected to come in the byte array, and pointing to implement in those
> classes (or the superclass), please. I would do it for you, by I run
> out of time just now.

As I said before, there is no bug here. It's just that Joe is using that
ISAPIWorkerRequestOutOfProc class and he thought it was


Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com

joe_audette at yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20041215/c2367314/attachment.html 

More information about the Mono-devel-list mailing list