Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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]
[Discipulus]: i still suspect english has some logical 'curvature/ crookedness' that has and will have a big impact over programming
[Discipulus]: if you refere to gestures ++choroba
Discipulus still has problem with 'until' beyond simplest cases
[choroba]: ;-)
[Discipulus]: and larry studied natural languages too
[choroba]: Czechs have problems with unless
[Lady_Aleena]: Are you all sick of me discussing my reorganization?
[Discipulus]: Untillian Headache or about the semantic of until

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2017-05-27 20:23 GMT
Find Nodes?
    Voting Booth?