Embedded Web Server in .NET

后端 未结 4 1439
粉色の甜心
粉色の甜心 2020-12-15 00:11

I would like to embed a light weight web server in a Windows application developed in .NET. The web server has to support PHP.

I have looked at Cassini, but it seems

相关标签:
4条回答
  • 2020-12-15 00:50

    You can always use PHP as a CGI application. CGI is well documented, and AFAIK pretty easy to implement. Use Darrel Millers suggestion, and couple it with some CGI magick, and you should be cooking with gas.

    0 讨论(0)
  • 2020-12-15 00:53

    I would look at the likes of XAMPP Lite which you could easily start up and shutdown with your application.

    There is also AppWeb which claims to be exactly what you are looking for.

    0 讨论(0)
  • 2020-12-15 01:07

    Mongoose embedded webserver https://code.google.com/p/mongoose/

    You can build it with VS2012/10/08 as EXE and you can use PHP and also websockets to push data to the client app. Also you can build a DLL you can do this with make or bring the code into a VS DLL project and build out a _DLLMain, DEF file, etc. Then use it direct from C# - see the mongoose.cs and example.cs files.

    0 讨论(0)
  • 2020-12-15 01:12

    The .net class HttpListener exposes the underlying http.sys upon which IIS is built. All machines since Windows XP2 have http.sys installed by default. Here are some links to get you started.

    XML-RPC SERVER USING HTTPLISTENER

    HttpListener For Dummies

    As for the PHP support, I don't know how you would enable this, but there is no technical reason you couldn't build it in.

    0 讨论(0)
提交回复
热议问题