isapi

In ISAPI, is it possible to set a header to a "the empty string" ?

The documentation for the ISAPI SetHeader function says that using '\0' for the value of the header will delete the header. Q1. Is it possible for an ISAPI filter to set the value of a header to the empty string? How? Q2. Does it even make sense to want to do this? Is it legal in the HTTP protocol to have an empty request header?...

Atlassian Bamboo behind IIS7 with Isapi redirect

I'm attempting to use Bamboo behind IIS 7. I have exhausted all of my resources so Im hoping someone here can help. After starting bamboo and trying to connect my browser eventually times out with a 503. Please note that only bamboo currently has a problem. JIRA,Confluence and Crowd all work without issue The logs from bamboo state j...

PHP5 ISAPI on Windows 7 (64 bit)..

Anyone running into issues with this setup? I'm getting this message: This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive. However, I've set cgi.force_redirect equal to 0, and have reset IIS. ...

Another regex question with ISAPI-Rewrite

Hi, it's been a couple of hours now that I'm working on this and I can't seem to figure out what the correct regex is. First of all, I'm working with IIS6 and ISAPI_Rewrite 3.0 and I'm testing my regex with the utlity that comes with it before using it on the web site. The website has an web app located at www.foo.com/bar/ and I want t...

C++ ISAPI Filter Code

I know very little about C++ but I'm trying to tackle something for work and need some help... I'm using this C++ ISAPI filter code to add a message to the top of a page on a IIS web server running ASP and CFML. This is a web server that will be going away and need a way to notify the users. This code works for the most part, however...

Faulting DLL (ISAPI Filter)...

I wrote this ISAPI filter to rewrite the URL because we had some sites that moved locations... Basically the filter looks at the referrer, and if it's the local server, it looks at the requested URL and compared it to the full referrer. If the first path is identical, nothing is done, however if not, it takes the first path from the fu...

Setting custom header values in an IIS ISAPI filter

I have an ISAPI filter that I am using to do URL rewriting for my CMS. I am processing SF_NOTIFY_PREPROC_HEADERS notifications, and trying to do this: DWORD ProcessHeader(HTTP_FILTER_CONTEXT *con, HTTP_FILTER_PREPROC_HEADERS *head) { head->SetHeader(con, "test1", "aaa"); con->AddResponseHeaders(con, "test2:bbb\r\n", 0); retu...

IIS7 ISAPI Filter Module & HttpModule Events - How do they line up?

So IIS7 in Integrated Pipeline mode uses a IsapiFilterModule to shim ISAPI filter DLL's and fire off the correct "events" on the filters, which is quite different than previous versions of IIS or IIS7 in classic mode because this means that HttpModules fire off right along side ISAPI filters in Integrated Pipeline mode. So does anyone ...

How to manipulate a header and then continue with it in C#?

Hi all, I want to replace an old ISAPI filter that ran on IIS6. This filter checks if the request is of a special kind, then manipulates the header and continues with the request. Two headers are added in the manipulating method that I need for calling another special ISAPI module. So I have ISAPI C++ code like: DWORD OnPreProc(HTTP_FIL...

Who is responsible for calling CoInitialize and CoUninitialize if surrogate process or COM+

Who is responsible for calling CoInitialize and CoUninitialize if 1- I host a COM dll within a surrogate process (either by using dcomcnfg utility or COM+ wizard)? 2- I build a ISAPI DLL that contains COM objects? ...

Can HTTP URIs have non-ASCII characters?

I tried to find this in the relevant RFC, IETF RFC 3986, but couldn't figure it. Do URIs for HTTP allow Unicode, or non-ASCII of any kind? Can you please cite the section and the RFC that supports your answer. NB: For those who might think this is not programming related - it is. It's related to an ISAPI filter I'm building. A...

Render ASP in pages with .html extension in Windows CE

I want to be able to use the .html extension to render ASP pages. I am using Windows CE 6 at the moment with the default web server, ASP is turned on. My registry key looks like HKEY_LOCAL_MACHINE\COMM\HTTPD\ScriptMap with the following string key value pair added .html = \\Windows\\asp.dll. After doing this all my .html files gave...

Is it possible to tie a C++ output stream to another output stream?

Is it possible to tie a C++ output stream to another output stream? I'm asking because I've written an ISAPI extension in C++ and I've written ostreams around the WriteClient and ServerSupportFunction/HSE_REQ_SEND_RESPONSE_HEADER_EX functions - one ostream for the HTTP headers and one for the body of the HTTP response. I'd like to tie t...

How to retrieve metabase properties from within an ISAPI Filter

In an ISAPI Filter, how can I retrieve metabase properties for the current application? I know I can get the metabase path by retrieving the server variable APPL_MD_PATH. How can I get, for example, the PutReadSize property, at runtime, within an ISAPI Filter? ...

From within an ISAPI filter, how to determine the virtual path for an IIS application?

Is there a way, inside an ISAPI Filter, to determine the virtual path for the IIS application or virtual directory? It's basically the same question as IIS Root Path vs Path of virtual directory, but rather than within an ASP.NET application, I want this from within an ISAPI filter. Does the value of the server variable APPL_MD_PATH a...

Is there any ISAPI DLL C# wraper?

I created a HTTP\TCP server in C#. Now I want to host It as I would host normal C\C++ server . I want to give to it namespace on my 80's port near to other HTTP servers I have. (see this topic ) So anyway I want to be able to use ISAPI DLL from. I need a wraper. Where to find such? ...

Helicon ISAPI_REWRITE for masking folder

Hello, I would like to use the Helicon ISAPI_REWRITE module to rewrite a url: 123.45.67.89/folder to www.site.com I need to mask the IP/folder due to an IIS structure change. The reason why I don't want to get into, but it's valid based on the setup. Any help would be appreciated. Thanks. ...

writing a web service with dynamically determined web methods

Let's say I have a text file of basic mathematical functions. I want to make a web service that answers these mathematical functions. Say the first one is y=x*x. If I wanted to turn this into a web service, I could simply do this: [WebMethod] public int A(int x) { return x*x; } However, I've extracted the function from the list b...

ISAPI Url Rewrite - from http to https

I have to url redirect a link which is an HTTP link, but it should redirect to an HTTPS form. How do I do that using ISAPI rewrites? ...

WIX: How can I uninstall an ISAPI filter using WIX?

In WIX, I can install an ISAPI filter using the iis:WebFilter element: <Component Id='C.Filter1' Guid="6781xxxx-xxxx-4893-xxxx-aaaabbbbdddd"> <!-- CreateFolder - included to avoid problem with missing KeyPath --> <CreateFolder/> <iis:WebFilter Id="WebFilter1" LoadOrder="first" Name="My Custom ISAP...