Re: ExecuteUrlHeaders don't seem to matter



Bruce,

Thanks for responding -- I appreciate your effort.

Unlucky for me, all of that other stuff already works. The mapping's in
place, the DefaultWebHandler is being called as it is supposed to, and some
additional Reflectoring shows that the ExecuteUrlHeaders are being sent for
processing to

ISAPIWorkerRequestInProcForIIS6.BeginExecuteUrl(..), which in turn sends
them to

UnsaveNativeMethods.EcbExecuteUrlUnicode(..), which is a rabbit hole, being
the native code and all.

See, this guy hands control of the request back to IIS6, and I am wondering
if the headers are even being passed to it, and what restrictions and proper
use guidelines are of this functionality.

So, my question really should be restated to: "Has anybody ever successfully
used ExecuteUrlHeaders collection to modify/add header information in
DefaultWebHandler?"

Does this make sense?

P.S. Speaking of the next version of IIS. IIS7 integrated pipeline doesn't
even use this capability (ExecuteUrlHeaders collection, that is).

:DG<

"bruce barker" wrote:

then you have to map the page to asp.net handling or your handler will
not be called (see your iis settings). there is a performance cost to
having asp.net serve static html which is why its not done by default.

note: the next release of iis will allow iis handlers to be written in
..net, so you will not need to map the files to asp.net to get the feature.

-- bruce (sqlwork.com)

Dimitri Glazkov wrote:
The page that the DefaultHttpHandler handles is a static HTML page.

:DG<

"bruce barker" wrote:

be sure the page code does not clear the headers.

-- bruce (sqlwork.com)

Dimitri Glazkov wrote:
Ok, help me out here. Here I am, coding under innocent assumption that
DefaultHttpHandler.ExecuteUrlHeaders are passed to the IIS6, per
documentation. Bu the thing is, they don't seem to. No matter what I put in
that collection, nothing gets into the HTTP response:

public override string OverrideExecuteUrlPath()
{
ExecuteUrlHeaders.Add("X-Frustration", "work, dammit");
return Context.Request.ApplicationPath + _path;
}

What gives? Anybody has any pointers/helpers?

.



Relevant Pages

  • Re: exact url typed in browser
    ... "bruce barker" wrote in message ... > for a default page, and if found, then sends a redirect to the browser. ... >> page defined in 'Documents' section in iis. ... i can't find proper ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: asp.net 3.5 and ajax on widows 2003
    ... Thank you, yes, however in IIS on the asp.net tab only 2.0x is available, ... "bruce barker" wrote: ... Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IE progress bar never stops incrementing...
    ... bruce barker wrote: ... There are no errors in IIS. ... I moved the project to the same server as the the map ... service (it creates the jpg), ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IE progress bar never stops incrementing...
    ... bruce barker wrote: ... There are no errors in IIS. ... I moved the project to the same server as the the map ... service (it creates the jpg), ...
    (microsoft.public.dotnet.framework.aspnet)

Loading