Hello everybody,
I'd like to tell you about the sc-win32-status field of the W3C Logging in IIS, which has become very useful in IIS7 (on Server 2008) since it makes you know about a transfer being complete or not. In other words, you can make sure that a file download was successfully terminated ('0') and not aborted ('64') by the client, without need of any ActiveX component or anything else on the client side.
Although this field was already present in previous versions of IIS, it didn't seem to be reliable at all (i.e. always returning '0' error code, depending on the versions of Windows&IIS).
You can refer to the "NET HELPMSG" command to get information about the error code the Win32 Status returns.
However, something getting me lost is that I still can't figure out how to get this value from a HttpModule. The fact that the HttpApplication.LogRequest event was specifically included in the new IIS API leads me to think there's a way to retrieve this information, and I'd love that someone could tell me about it because I've been looking for it 2 whole days along so far >_<
Here's some accurate documentation I managed to find:
- http://msdn2.microsoft.com/en-us/library/aa814385(VS.85).aspx (maybe useable from C# code ?)
- http://blogs.msdn.com/david.wang/archive/2006/04/15/HOWTO-Get-Field-Data-for-Custom-Logging-with-ISAPI-Filter.aspx (IIS6 related)
Thank you !