Search code examples
c#httptcphttpmodule

How to make from your Custom HTTP Module a stand alone HTTP server?


How to make from your Custom HTTP Module a stand aloun TCP\HTTP server capable of for example runing near to any other HTTP server (on same port, just taking some URL namespace like www.example.com/myModule/blabla?id=anyID, and not beeng rood to my other servers like apache HTTP server with PHP (so I can steel call it www.example.com/myApach/blabla?id=anyID) and with my other C\C++ based servers.)?

So I created my module as TCP\HTTP server - I give call URL - it gives me response.

Tooday my ASP.NET server hendels hosting my module.

I want to get rid of that ASP.NET server - make my module stand alone app.

I need CODE examples...)


Solution

  • Simple answer: you can't. HttpModules are dependent on the ASP.NET framework, which is in turn dependent on the .NET Framework, which in turn requires a separate web server package like IIS or Apache (with lots of reconfiguration).