Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Download a file with WWW::Mechanize

by Gangabass (Vicar)
on Apr 21, 2013 at 06:02 UTC ( #1029714=note: print w/replies, xml ) Need Help??

in reply to Download a file with WWW::Mechanize

I'm sure this is not WWW::Mechanize issue because this simple script works for me:
#!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; my $mech = WWW::Mechanize->new(); #$mech->agent_alias("Windows IE 6"); $mech->get(""); $mech->save_content("");
What HTML do you have?

Replies are listed 'Best First'.
Re^2: Download a file with WWW::Mechanize
by Limbic~Region (Chancellor) on Apr 21, 2013 at 15:44 UTC
    I slept for 10 hours and haven't had a chance to test the code (which obviously was a small piece of a much larger script). I assume you are right and that the problem was elsewhere. I will see what happens and report back if still having problems.

    Update: Yep. I wasn't bothering to verify I was fetching the URL I thought I was. Instead of, I was grabbing

    Cheers - L~R


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2021-01-24 08:23 GMT
Find Nodes?
    Voting Booth?