Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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 = 'https://192.168.1.1/cgi-bin/get-sae-log.cgi?host=thingy&da +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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2014-07-24 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (157 votes), past polls