Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: LWP HTTPS and a sore head

by tokpela (Chaplain)
on Jul 16, 2009 at 08:37 UTC ( [id://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"; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-24 19:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found