Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: HTTP GET with a timer

by Gangabass (Vicar)
on Dec 13, 2013 at 11:05 UTC ( #1067017=note: print w/replies, xml ) Need Help??


in reply to HTTP GET with a timer

I don't understand your issue. Below code works for me:
use WWW::Mechanize; use FindBin qw($Bin); my $web_address = "https://www.edockets.state.mn.us/EFiling/edockets/s +earchDocuments.do?method=showPoup&documentId={615DAF1F-C025-401F-9150 +-DB3337EF61A7}&documentTitle=201312-94506-01"; my $mech = WWW::Mechanize->new(); $mech->get($web_address); open my $fh, ">:raw", "$Bin/result.pdf" or die $!; print {$fh} $mech->content(); close $fh;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2020-05-26 17:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (150 votes). Check out past polls.

    Notices?