Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug webpage redirects in browser

I am debugging a web application which redirects several times on page load. Page A redirects to page B, which redirects to page C. I don't know what methodology is used (e.g. JavaScript, HTTP redirects, etc.).

What I'm looking for is a debugger to break before a page gets redirected, so that I can inspect exactly what method is being used to redirect, and what data is being sent to next page in the redirect chain.

Is there a simple way to do that? I'm debugging on Windows, so Chrome, Firefox and IE are all available.

UPDATE: It seems that Fiddler is the best option available. I marked the answer from @cgatian as a solution, since his was the Fiddler idea.

like image 532
galets Avatar asked Aug 28 '13 01:08

galets


People also ask

How do I debug redirection?

You can enable redirect debugging by going to Settings > Debug wp_redirect() on your site or in your network settings (if network activated). You have the option to enable debugging for frontend requests and/or admin dashboard requests.

How do I view redirects in Google Chrome?

Type "cache:sitename.com" in the address bar of Chrome and press "Enter" where "sitename" is the URL that is generating the redirect. This will show you a cached version of the site on which you can use the Inspect Element pane to find and capture the redirect URL.


1 Answers

In chrome, in the debug window, at the very bottom, are a series of buttons. Click the button that is a dark black circle. It will preserve the log upon navigation. I think that is what you want.

like image 169
Paul Nikonowicz Avatar answered Oct 13 '22 02:10

Paul Nikonowicz