简单且持久的 CGI 接口

发布于 2024-07-24 06:08:11 字数 277 浏览 4 评论 0原文

我喜欢 Apache 的 CGI 的简单性,但希望能够让我的代码在 CGI 请求之间运行。 mod_perl 在这种情况下不断出现,只是我不是用 Perl 编写的。

我知道 FastCGI,但我正在寻找更简单的东西 - 不涉及 CGI 程序本身的网络或库的东西。 我正在考虑仍然使用 stdin 和 stdout 的东西,但有一些特殊的东西来表示一个请求的结束,以及另一件事来启动并为新请求提供参数。

它看起来很明显,你会认为它就在某个地方,但我不知道如何找到它。 有人知道这样的事情吗?

I like the simplicity of CGI with Apache, but would like to be able to just leave my code running between CGI requests. mod_perl keeps coming up in this context, except that I'm not writing in Perl.

I'm aware of FastCGI, but am looking for something much simpler - something that doesn't involve networking or libraries in the CGI program itself. I'm thinking something that still uses stdin and stdout, but with a few special things to signal the end of one request, and another thing to start and give the parameters for a new request.

It seems obvious enough that you'd think its out there somewhere, but I wouldn't know how to find it. Anybody aware of such a thing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

高冷爸爸 2024-07-31 06:08:11

使用基于脚本的迷你 Web 服务器,例如:

Use a script-based mini web server such as:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文