Reputation: 17785
A web application is making a HTTP request and I cannot understand how it is making it. It makes it just after painting a page. There is no 302 in the previous requests and nothing obvious which will tell me how this request is being made.
What would help is if I could set a breakpoint which would stop just before the next HTTP request is about to be sent. Then just after the page is painted, I'd enable this and figure out who is sending it Firebug lets me do this for XHR (Ajax) requests but not for normal requests. This is a normal HTTP request - not an AJAX one.
Is it possible to do this with the debug tools in chrome or IE?
Upvotes: 6
Views: 5230
Reputation: 17785
Firstly how I got it.
:
<video id="my_video" class="video-js" width="313" height="240" controls="controls" preload="none" poster="#">
The part poster="#"
was the culprit. This sends a request to the containing page if there is no video to show.
Upvotes: 6
Reputation: 32286
In Chrome DevTools, go to the Network
panel. Find the respective resource by its name in the leftmost column and look at the Initiator column. It will specify the object that originated the resource load. It can be a Script, in which case it will also contain a hyperlink to the corresponding script line, which loaded the resource. The same holds for the Parser initiator - it will give you a hyperlink to the corresponding HTML line, if it is the one that loaded your resource.
Upvotes: 5
Reputation: 41218
location = ...
location.href = ...
window.location = ...
window.location.href = ...
etc.<meta http-equiv="refresh" content="0;URL='http://example.com/'">
in the <head>
of the HTML.Net panel
and click "Persist" to observe all the requests, even after redirects.Upvotes: 0
Reputation: 33585
Chrome has a version of firebug. http://getfirebug.com/firebuglite
Fiddler supports HTTPS. It's Windows-only, but you didn't specify a platform.
Upvotes: 0