Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Download a file from website

by frozenwithjoy (Priest)
on Sep 13, 2012 at 08:06 UTC ( #993413=note: print w/replies, xml ) Need Help??

in reply to Download a file from website

Does it work if you try to do it outside of Perl? When I run your curl command in terminal (curl -C - -o pigtutorial.tar.gz, I just get a 65kb file that is the html of the site (and not a tarball). Are you pointing to the correct place?

Replies are listed 'Best First'.
Re^2: Download a file from website
by rahulruns (Beadle) on Sep 13, 2012 at 08:10 UTC

    Yes it works outside PERL. I am able to download the file and extract it

Re^2: Download a file from website
by rahulruns (Beadle) on Sep 13, 2012 at 10:23 UTC

    rightly replied by frozenwith joy. When you check the file downloaded file from the link it has a href for the location of exact file and now it downloads from that location mentioned in href. This thread could be closed

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2016-10-24 12:56 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (305 votes). Check out past polls.