URI::Unredirect - Remove obvious redirects from a URI
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.
URI::Unredirect
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:
GitHub Source Repository
http://github.com/gray/uri-unredirect
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/URI-Unredirect
CPAN Ratings
http://cpanratings.perl.org/d/URI-Unredirect
RT: CPAN's request tracker
http://rt.cpan.org/Public/Dist/Display.html?Name=URI-Unredirect
Search CPAN
http://search.cpan.org/dist/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>
To install URI::Unredirect, copy and paste the appropriate command in to your terminal.
cpanm
cpanm URI::Unredirect
CPAN shell
perl -MCPAN -e shell install URI::Unredirect
For more information on module installation, please visit the detailed CPAN module installation guide.