my $jar='xxxxxx.jar'; my $url = "http://ip_address:port/artifactory/api/search/artifact?name=".$jar."&repos=xxxxx-3rdparty-libs-local,Central_Maven_repository-cache,Jcenter,Jcenter-cache,FuseSource,MavenRedHat,ApacheArchive,Central_Maven_2_repository-cache,xxxxx-3rdparty-libs-common,Central_Maven_2_repository,Central_Maven_repository,Jcenter and Gradle-Remote"; my $response; my $ff = File::Fetch->new(uri => $url); $ff->fetch( to => \$response) or die $ff->error; print Dumper $response;