If I recall correctly, IIS passes on the complete request stream to ASP.NET.
By the time an iHttpHandler has access to it it is already part of the
request object as a read only collection of data. Thus, you can only modify
the headers collection at request creation from a windows app for example as
you are creating the request, not recieving it.
You may need to drop down to an ISAPI filter to work with the stream to the
level you are looking for.
http://msdn.microsoft.com/msdnmag/is...8/HTTPFilters/
This might get you started, but its not a solution.
http://msdn.microsoft.com/library/de...9794b42842.asp
There are ISAPI modules you can buy to do this avaialable.
--
Regards
John Timney
ASP.NET MVP
Microsoft Regional Director
"Chad A. Beckner" <cb******@iupui.edu> wrote in message
news:e1*************@TK2MSFTNGP14.phx.gbl...
Hi,
I am trying to figure out how to add a header to an incoming request in
ASP.NET. This is needed because I need to set some header information
which ASP (non-DOTNET) uses to process requests. I have looked at the
httpmodule and httphandler, but can't figure out how to do it (always says
it's a read-only collection). Any ideas? I already have a working ISAPI
filter, but am trying to get away from that setup.
Thanks!
Chad