Spartacus has asked for the wisdom of the Perl Monks concerning the following question:
The problem is downloading large files (hundreds of megs). I get a very friendly Out of memory! error. Are there other ways to use SSLeay to download directly to a file, or to redirect a variable to a file handle of some sort, or use unix piping to get around this?($page, $result, %headers) = Net::SSLeay::get_https("aaa.bbb.com", 443, "/data/file.gz", Net::SSLeay::make_headers('Authorization' => 'Basic ' . MIME::Base64::encode("$user:$pass")) ); # print downloaded file into local file open(FILE, "file.gz"); print FILE $page; close FILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Memory limits with NET::SSLeay
by chipmunk (Parson) on May 17, 2001 at 23:03 UTC |