在C#中创建简单的嵌入式http和https应用程序 [英] Create simple embedded http and https applications in C#

查看:318
本文介绍了在C#中创建简单的嵌入式http和https应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个简单的 http服务器API ,可以让你做一些简单的东西,无需任何附加依赖/安装。

There is a simple http server API that allow you do some simple stuff quickly, without any addition dependency/installation required.

.NET中是否有类似的API /库 没有IIS

Are there any similar API/library in .NET WITHOUT IIS?

例如,我是一个小窗口服务运行,我想添加一个简单的愚蠢的Web界面,以允许本地/远程控制/监控。

For example, I am a small window service running, I'd like to add a simple stupid web interface to allow local/remote control/monitoring.

推荐答案

HttpListener 即使没有IIS也会挂钩到HTTP.SYS。我相信。

HttpListener hooks into HTTP.SYS even without IIS, I believe.

你需要添加priveleges到但是服务帐户 - 在vista上 netsh ,在xp上 httpcfg (如何覆盖这里)。

You'll need to add priveleges to the service account, though - netsh on vista, httpcfg on xp ("how" covered here).

这篇关于在C#中创建简单的嵌入式http和https应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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