Help for this page

Select Code to Download


  1. or download this
    my $jar='xxxxxx.jar';
    my $url = "http://ip_address:port/artifactory/api/search/artifact?name
    +=".$jar."&repos=xxxxx-3rdparty-libs-local,Central_Maven_repository-ca
    +che,Jcenter,Jcenter-cache,FuseSource,MavenRedHat,ApacheArchive,Centra
    +l_Maven_2_repository-cache,xxxxx-3rdparty-libs-common,Central_Maven_2
    +_repository,Central_Maven_repository,Jcenter and Gradle-Remote";
    ...
    my $ff = File::Fetch->new(uri => $url);
    $ff->fetch( to => \$response) or die $ff->error;
    print Dumper $response;
    
  2. or download this
     
    $VAR1 = '{
      "results" : [ {
    ...
      } ]
    }';
    
  3. or download this
    Can't use string ("{
      "results" : [ {
        "uri" : "...) as a SCALAR ref while "strict refs" in use at artifa
    +ctory_url.pl line 39.
    
  4. or download this
          
    if ($response =~/"uri" : "(.*?)"/){
          print($1."\n");
          }else{
            print("Fetch failed\n");
          }