Skip to content

UMDEV/UMFilter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UMFilter

Sample C++ ISAPI filter and extension for debugging issues with filters related to other extensions (or ASP.net) eating POST requests.

This is a sample IIS filter & extension that prints out a custom header and echos the post back. It is also a simple example of creating a combo filter & extension for IIS 7.0, 7.5, 8.0, 8.5.

Installation Requirements

In order to use the UMFilter.dll ISAPI filter+extension you need to install the Visual C++ 2017 redistributable.

Build Settings

This UMFilter.dll was built using Visual Studio 2017 (Community Edition) using the following settings:

  • Configuration: 64bit Release build
  • Target Platform: Windows 10
  • Windows SDK Version: 10.0.16299.0
  • Platform Toolset: Visual Studio 2017 (v141)
  • Use of MFC: Use Standard Windows Libraries
  • Common Language Runtime Support: No Common Language Runtime Support

How To Use This Filter

Using a utility that can make POST http requests, like curl, you need to POST data to a url that matches the ISAPI script mapping you setup.

An example would be if you are testing your local IIS that has mapped the dll to *.sso then you would POST "param1=test1&param2=test2" to "http://localhost/Shibboleth.sso"

using curl: curl -v -d "param1=test&param2=test2" "http://localhost/Shibboleth.sso"

The successful response back would be: <html><body><pre>param1=test1&param2=test2</pre></body></html> showing that all your POSTed data is printed in the pre element tag, you will also see the custom header in the response headers.

About

Sample C++ ISAPI filter and extension

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%