NAME

URI::Unredirect - Remove obvious redirects from a URI

SYNOPSIS

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/

DESCRIPTION

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:

METHODS

unredirect

$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.

SEE ALSO

URI

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

REQUESTS AND BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc URI::Unredirect

You can also look for information at:

COPYRIGHT AND LICENSE

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.

AUTHOR

gray, <gray at cpan.org>