Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The URL you mentioned uses a JavaScript redirect, which will only redirect a browser. So there's no easy way to detect the redirect.</p> <p>For proper (HTTP Status Code and Location:) redirects, you might want to remove</p> <pre><code>req.AllowAutoRedirect = false; </code></pre> <p>and get the final URL using</p> <pre><code>myResp.ResponseUri </code></pre> <p>as there can be more than one redirect.</p> <p><strong>UPDATE: More clarification regarding redirects:</strong></p> <p>There's more than one way to redirect a browser to another URL.</p> <p>The first way is to use a 3xx HTTP status code, and the Location: header. This is the way the gods intended HTTP redirects to work, and is also known as "the one true way." This method will work on all browsers and crawlers.</p> <p>And then there are the devil's ways. These include <a href="http://en.wikipedia.org/wiki/Meta_refresh" rel="noreferrer">meta refresh</a>, the Refresh: header, and JavaScript. Although these methods work in most browsers, they are definitely not guaranteed to work, and occasionally result in strange behavior (aka. <a href="http://www.w3.org/QA/Tips/reback" rel="noreferrer">breaking the back button</a>).</p> <p>Most web crawlers, including the Googlebot, ignore these redirection methods, and so should you. If you absolutely <em>have</em> to detect all redirects, then you would have to parse the HTML for META tags, look for Refresh: headers in the response, and evaluate Javascript. Good luck with the last one.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload