Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Download a file from website

by frozenwithjoy (Curate)
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 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?


Comment on Re: Download a file from website
Download Code
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2015-07-02 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (27 votes), past polls