红宝石洗手液wiredump
如何使用“handsoap”库查看肥皂的转储?
我使用 on_before_dispatch 挂钩,现在我正在查看 SoapService 变量以查看此类请求可能存储的位置。
嗯..我还应该检查调用以查看哪个变量。正在使用..
你有快速的解决方案吗? :D 谢谢
How can see the wiredump of a soap using the 'handsoap' library?
I use the on_before_dispatch hook, and right now I am looking at the SoapService variables to see where such a request might be stored.
Hmm.. I should also check out invoke to see which var. is using..
Do you have a quick solution? :D
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以通过设置类变量
$logger
来转储http活动,如下所示:这将转储出格式良好的http请求和响应。请注意,这并不是 100% 通过网络传输的内容,因为底层 http 客户端实现可能会添加一些标头等。对于大多数用途,这并不重要,但如果您要追踪错误,您可能需要使用wireshark。
You can dump http-activity by setting the class variable
$logger
, as in:This will dump out the http-request and response, nicely formatted. Note that this is not 100% what goes over the wire, since the underlying http-client implementation may add some headers etc. For most uses, ths doesn't matter, but if you're tracing down a bug, you might want to employ wireshark.
我使用了钩子
,文档保存了 doc 变量。
I used the hook
and document holds the doc variable.
关于更抽象(非特定于 ruby)的说明,请尝试 wireshark。多年来一直使用它来对各种应用程序进行Wiredump。
On a more abstract (none ruby specific) note, try wireshark. Been using it for wiredumps for all kinds of apps for years.