Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I download ZIP file with curl command? I tried curl -sO, but error occurred. I want to download zip file from address: http://github.com/ziyaddin/xampp/archive/master.zip

but can't. What must I type?

share|improve this question

3 Answers 3

up vote 6 down vote accepted

I found it. I must use curl -LOk and it works fine. wget command is good too.

share|improve this answer
    
Worked for me. using Windows 7 –  fedmich Dec 10 at 7:08

If you want to download the file use wget [option]... [URL]... instead.

For more information regarding the options, just type this into your Terminal: man wget

For you purpose:

wget http://github.com/ziyaddin/xampp/archive/master.zip

Note that the .zip file will be saved in the current directory you are in.

share|improve this answer
    
It would be helpful to explain the advantages of using wget over of curl. For anyone wondering the differences between the two see here. –  Jorge Bucaran Dec 9 at 17:50

Try wget instead of curl: wget http://github.com/ziyaddin/xampp/archive/master.zip

share|improve this answer
1  
Can the downvoter explain? Or is the other poster? –  don.joey Apr 26 '13 at 19:47
    
Could you explain why wget instead of curl? –  Jorge Bucaran Dec 9 at 17:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.