JS / web调试器来跟踪HTTP请求的起源? [英] JS/web debugger to trace origins of HTTP requests?

查看:162
本文介绍了JS / web调试器来跟踪HTTP请求的起源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种可以在浏览器中运行的工具(任何浏览器都可以),并显示每个 HTTP 请求发起的位置( HTML 源文件和行,Javascript或其他任何东西)。



有点背景。有一个可以直接或通过内容修改代理访问的第三方Web应用程序。在前一种情况下,它是有效的,在后者中没有。我的任务是找出为什么代理中断应用程序,并解决任何问题(通常代理只应该修改不影响功能)。



我有将其缩小为单个 HTTP 请求。当直接访问时,浏览器会向一个特定地址发出GET,例如 http://example.com/foobar.html 。当通过代理访问时,没有这样的请求。这个 foobar.html 包含应用程序的一个重要部分,所以它不会没有它。假设代理破坏了应该发出此请求的一些代码。问题是我找不到这个代码,所以无法弄明白是什么破坏。在整个应用程序中,没有任何东西看起来像 foobar



该应用程序是一个混乱的Javascript这会产生其他可能包含更多Javascript等的avascript和/或HTML。某些路上可能会生成,一些 iframe src = ... 或任何通过 document.write ,这个HTML块引用了所需的 http://example.com/foobar.html



所以我需要的是能够告诉浏览器:看到这个地址, http://example.com/foobar.html ?每当有这个地址的请求,停下来告诉我你在做什么!希望这将让我缩小搜索范围。



我在 firebug 中找不到这样的功能, venkman 。我错过了什么吗?有没有其他可以让我这样做的工具?



我看到有问题的请求的引用者标题,但引用文件非常大,混淆。到目前为止,我无法做出任何有意义的事情。

解决方案

FireBug然后是网络选项卡...


I am looking for a tool that would run in a browser (any browser will do) and show me where each HTTP request originated (HTML source file and line, Javascript, or whatever else).

A bit of background. There is a third-party Web application that can be accessed either directly or through a content-modifying proxy. In the former case it works, in the latter it doesn't. My task is to figure out why the proxy breaks the app, and fix whatever problem there is (normally the proxy should only modifications that do not affect functionality).

I have narrowed it down to a single HTTP request. When accessed directly, the browser issues a GET to one particular address, say http://example.com/foobar.html. When accessed through the proxy, there's no such request. This foobar.html contains an important part of the application, so it won't function without it. Supposedly the proxy breaks some code that ought to issue this request. The problem is that I cannot find this code, and so cannot figure out what exactly is broken. There's nothing that looks remotely like foobar in the entire application.

The application in question is a jumble of obfuscated Javascript that generates other avascript and/or HTML that may contain more Javascript etc. Somewhere along the road it probably generates, piece by piece, some iframe src=... or whatever via document.write, and this chunk of HTML references the needed http://example.com/foobar.html.

So what I need is the ability to tell the browser: "See this address, http://example.com/foobar.html? Whenever there is a request to this address, stop and show me what are you doing!" Hopefully this will let me narrow down my search somewhat more.

I couldn't find such functionality in firebug or venkman. Am I missing something? Is there any other tool that would let me do it?

I see the Referer header of the request in question, but the referring file is very large and obfuscated. So far, I was not able to make anything meaningful out of it.

解决方案

FireBug then the Network Tab...

这篇关于JS / web调试器来跟踪HTTP请求的起源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆