tags:

views:

20

answers:

0

Hello, I'm far from an ASP.NET specialist so I was wondering what the best way to handle this was:

I need to upload potentially large files to an ASP.NET application by a cURL client (i.e. an HTTP PUT request)

I need to validate the user identity as well as other header information early in the process in order to reject invalid connection as soon as possible as well.

What's the best way to go about this ? Straight ASP.NET pages apparently will run only when the full request has been received (and don't look like they are the most appropriate way to handle PUT requests). I was thinking of writing a HTTPHandler for this but I don't see how I can request some code to be run right after the request header have been submitted. Should I write an HTTP module instead ? Something else ? Does anyone have a sample ?