HOWTO: PreCondition an ISAPI Extension DLL

Question: Hello We have a legacy x64 ISAPI extension that runs without problems in Win 2003 64bit – IIS 6.0. But in Win2008 EBS Security Manager setup, IIS 7.0 Default Application Pool’s WOW64 / Enable32BitApp property is enabled by default, and this makes x64 ISAPI extension DLL to fail loading. By setting the Enable32BitApp option…

2

Managed Modules and ISAPI Filters

Question: Hello, I have an isapi filter and a managed module. I need to put both in the same website and I need that the manage module run before the isapi filter. The sequence are: Module—>ISAPI filter. How can I do this? Answer: The answer really depends on the filter events that the ISAPI Filter…

4

HOWTO: Change IIS User Impersonation Token

Question: Hi, We are using our third party component for doing authentication and authorization with IIS6 web server on win2k3 X64 EE. Here we are using IMPERSONATION concept for this integration. Can anybody describe the required configuration which are needed at IIS 6 for successfully impersonation of users with third party component? Should we need…

2

Internet Explorer is not an HTTP Validator

Question: I tried a 2nd approach in porting client code from WinInet, and that was to utilize managed C++, as opposed to WinHttp. After implementing the .NET managed client code…    HttpWebRequest^ myReq = dynamic_cast<HttpWebRequest^>(WebRequest::Create( strTargetURL ));    myReq->Method = “POST”;    …     HttpWebResponse^ HttpWResp = dynamic_cast<HttpWebResponse^>(myReq->GetResponse()); Within the code, GetResponse() throws…     An unhandled exception of…

7

Can ISAPI Filter change the Request’s domain name?

Question: Hi, I would like to know if we can get the entire URL that is sent through the browser into the ISAPI filter DLL. E.g. If I have a URL like – http://www.mysite.com/test what I get into the DLL (using GetHeader) is “/test”. But I need the entire URL as I want to make…

6

HOWTO: Install and Run PHP on IIS7, Part 3

A short while ago, I came out with a small script to properly configure PHP for IIS7. Sure enough, I got asked to make a similar one for IIS6. So, I figure that while I am at it, I might as well cover IIS4, IIS5, and IIS5.1 as well since it is not very different, and…

5

HOWTO: Install and Run PHP on IIS7, Part 2

A couple of months ago, I wrote a quick and dirty entry on how to install PHP on IIS7. The main purpose of that entry was to explain the details of what was going on as well as cookie-cutter instructions of one way to successfully install PHP on IIS7. Well, the responses that I have…

51

ISAPI Filter and the IIS6 Process Model

Question: In IIS6, is there a way to have a top-level filter run in a process space separate from each website’s process space?  Under IIS5, our filter has been used to store a large data cache to reduce the number of round trips to our database.  Now, in IIS6, this large data cache is unfortunately…

5

HOWTO: Access POST form data with ISAPI

This is a frequently asked question about IIS6 extensibility – how to access the request entity body on the way in – as well as how to configure IIS. Question: I want to catch all incoming requests, add some header and watch it when its out. Therefore I used a filter which can’t be use…

4

HOWTO: Retrieve Request Headers using ISAPI, ASP, and ASP.Net

Developers frequently confuse Request Headers, Response Headers, and Server Variables as well as the appropriate syntax to retrieve/manipulate each of them, depending on the API (ISAPI, ASP, and ASP.Net). I am going to clarify all of this right now. 🙂 Question: So I’ve managed (thanks to your samples) to create a filter that adds a…

32