cgi-bin 是否有类似 servlet 过滤器的东西

发布于 2024-08-07 00:51:00 字数 68 浏览 1 评论 0原文

cgi 脚本有类似 servlet 过滤器的东西吗?即,一段代码有机会在“真实”脚本处理请求之前和之后查看和/或修改请求。

Does cgi scripts have something like servlet filters. I.e. a piece of code that is given the opportunity to see and or modify a request before and or after it is processes by the "real" script.

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

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

发布评论

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

评论(1

﹉夏雨初晴づ 2024-08-14 00:51:00

如果您通过 apache 模块编写 CGI 脚本,那么这是可能的。例如,mod_perl 提供了对此的挂钩。常规 CGI,apache 调用外部进程来处理脚本 - 不。对不起。

If you are programming a CGI script via an apache module, then it is possible. mod_perl, for example, gives hooks into that. Regular CGI, where apache calls an outside process to deal with the script - nope. Sorry.

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