cgi-bin 是否有类似 servlet 过滤器的东西
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您通过 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.