
URI::Unredirect - Remove obvious redirects from a URI

use URI;
use URI::Unredirect;
my $uri = URI->new('http://example.com/r?u=http%3A%2F%2Fexample.net');
$uri = $uri->unredirect; # http://example.net/

URI::Unredirect enables the removal of obvious redirects from a URI without making any network requests.
It is a port of the 'remove redirects' javascript bookmarklet.
It adds the following method to the URI namespace:

$uri = $uri->unredirect
Removes obvious redirects and returns the resulting URI object.
For efficiency reasons, if the URI is unchanged, a reference to the original is returned instead of a copy.

https://www.squarefree.com/bookmarklets/pagelinks.html#remove_redirects

Please report any bugs or feature requests to http://rt.cpan.org/Public/Bug/Report.html?Queue=URI-Unredirect. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.
perldoc URI::Unredirect
You can also look for information at:
http://rt.cpan.org/Public/Dist/Display.html?Name=URI-Unredirect

Copyright (C) 2009 gray <gray at cpan.org>, all rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

gray, <gray at cpan.org>