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 https://cwiki.apache.org/confluence/display/PIG/PigTutorial), 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 (Scribe) 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 (Scribe) 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