Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当 Web 浏览器发出请求时,如何捕获 HTTP 响应?
网页从服务中检索数据(带有帖子)。服务返回一个 json 对象。我想要的是捕获该json并实时解析它。
最简单的方法是什么?
您最好的选择是使用Fiddler,也许与JSON 查看器插件一起使用。
从主页:
Fiddler 是一个 Web 调试代理,它记录您的计算机和 Internet 之间的所有 HTTP(S) 流量。Fiddler 允许您检查所有 HTTP(S) 流量、设置断点以及“摆弄”传入或传出数据。Fiddler 包括一个强大的基于事件的脚本子系统,并且可以使用任何 .NET 语言进行扩展。
尝试HttpModule在 .Net 中搜索。它们是某种过滤器。HTTP 请求和响应流经它们并可以操纵内容。
HttpModule