如何获取 Catalyst 中的所有请求参数?
具体来说,我试图从支付网关捕获所有 POST 参数作为单个字符串,然后解析它们以查找字符串“ERROR”。
我知道有一个 $c->request->parameters
方法,但我不太确定它是如何使用的,而且我无法从 CPAN 文档中弄清楚它。
Specifically I'm trying to capture all the POST parameters from a payment gateway as a single string, and then parse them looking for the string 'ERROR'.
I'm aware that there's a $c->request->parameters
method, but I'm not quite sure how its used and I couldn't figure it out from the CPAN documentation.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它返回带有必要数据的散列引用
形式为:
将产生如下的散列引用:
It returns a hash reference with the necessary data
A form with:
Would result in a hashref like: