Help for this page

Select Code to Download


  1. or download this
    use IPC::Run3 'run3';
    run3 ['powershell', '-Command', 'Invoke-WebRequest', '-Uri', $uri,
        '-OutFile', $filename, '-UseDefaultCredentials'];
    $? and die "run3 failed with \$?=$?";
    
  2. or download this
    use File::Temp qw/tempfile/;
    use IPC::Run3 'run3';
    ...
        unlink $tfn;
        return $data;
    }