You can use Test::URI under the same terms as Perl itself.