在.NET嵌入式Web服务器 [英] Embedded Web Server in .NET

查看:238
本文介绍了在.NET嵌入式Web服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想嵌入一个轻量的Web服务器在.NET开发的Windows应用程序。 Web服务器必须支持PHP。

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

我已经看过卡西尼号,但现在看来,这是ASP.NET只。

I have looked at Cassini, but it seems it is ASP.NET only.

推荐答案

在.NET类的HttpListener暴露潜在的HTTP.SYS赖以IIS是建立。因为Windows XP2所有的机器都HTTP.SYS默认安装。 这里有一些链接,让您开始。

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服务器中使用的HttpListener

<一个href="http://bartdesmet.net/blogs/bart/archive/2007/02/22/httplistener-for-dummies-a-simple-http-request-reflector.aspx">HttpListener傻瓜

对于PHP的支持,我不知道你将如何实现这一目标,但没有技术上的原因,你不能在建立它。

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.

这篇关于在.NET嵌入式Web服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆