in reply to Unshortening t.co links
use DDP; &p([ $request, map [ $_, $_->request ], @redirects, ])
you can see that $response->request is listing the final request (whose ->uri you probably wanted?), and each of $response->redirects->@* give you ->request that created that response.
I'm actually not sure if you wanted the first redirect URL or the final redirect URL, but you can get them both from what is there.
|
|---|