title: Accessing redirected-to URL when making an HTTP request
body: <p>When making an HTTP request (using URLLoader, for example) that results in a redirect, is it possible to access any of the URLs in the redirect chain?</p>
  
  <p>For example, let's say that the following happens:</p>
  
  <ol>
  <li>We make a request to example.com/a.gif</li>
  <li>example.com redirects to example2.com/b.gif</li>
  <li>example2.com redirects to example3.com/c.gif</li>
  </ol>
  
  <p>I've stared at the documentation for URLLoader and its various events for a while, and it doesn't seem like there's a way to either:</p>
  
  <ol>
  <li>Instruct URLLoader to not follow redirects</li>
  <li>Access any of the URLs involved after the initial request</li>
  </ol>
  
  <p>Does anyone know if there's a way to do this? I'm not attached to using URLLoader, so if there's another class that supports this functionality, I'd be fine with using it.</p>
  
  <p>Can anyone point me in the right direction? Thanks in advance!</p>
  
  <p><strong>Edit</strong> - I should clarify: I know how to detect the redirects outside of AS3 using a DOM debugger. I'm specifically interested in accessing the redirect chain within AS3. It would appear that it's possible using the AIR player via the <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/HTTPStatusEvent.html#responseURL" rel="nofollow">HttpStatusEvent</a>, but the relevant properties aren't available when using Flash Player.</p>
  
  <p><strong>Edit 2</strong> - I've also tried using an HTTP client lib (as3httpclientlib, to be specific). This works except for the fact that it loads cross-domain policies from port 843 rather than by making an HTTP request to /crossdomain.xml. The context I'm working in requires the latter, so using something with Socket underlying it won't work unless there's a way to force Socket to load cross-domain policies from HTTP instead of port 843.</p>