Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 (Sexton) 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 (Sexton) 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 cooling their heels in the Monastery: (8)
As of 2014-09-16 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (13 votes), past polls