Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: LWP HTTPS and a sore head

by tokpela (Chaplain)
on Jul 16, 2009 at 08:37 UTC ( #780601=note: print w/ replies, xml ) Need Help??

in reply to LWP HTTPS and a sore head

Use LWP::Simple and getstore which saves directly to a file.

Untested code below...

use strict; use LWP::Simple; my $url = ' +te=20090703'; my $file = 'document.bzip2'; my $rc = getstore($url, $file); if (is_success($rc)) { "Success - saved [$url] to [$file]\n"; } else { "Error - [$rc] error in getting [$url]\n"; }

Comment on Re: LWP HTTPS and a sore head
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://780601]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2015-11-29 16:10 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls