I used "curl -sO" command to download project files from this GitHub project link: http://github.com/ziyaddin/xampp/archive/master.zip
but, I couldn't download. There is error occured and says that:
Archive: /home/ziyaddin/Desktop/master.zip [/home/ziyaddin/Desktop/master.zip] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. zipinfo: cannot find zipfile directory in one of /home/ziyaddin/Desktop/master.zip or /home/ziyaddin/Desktop/master.zip.zip, and cannot find /home/ziyaddin/Desktop/master.zip.ZIP, period.
but I can download this link with curl command: http://cloud.github.com/downloads/pivotal/jasmine/jasmine-standalone-1.3.1.zip
I think that it is because it is in cloud.github.com. I want to know how can I download from first link with curl command?
How to download a file with curl command. The basic syntax: Grab file with curl run: $ curl https://your-domain/file.pdf. Get file using ftp or sftp protocol: $ curl ftp://ftp-your-domain-name/file.tar.gz.
When downloading materials to your laptop, it is easiest to download the entire repository. To do this, go to the GitHub page for the workshop, click on the green Code button, then download the repository as a ZIP file.
curl -L -O https://github.com/ziyaddin/xampp/archive/master.zip
https://
-L
to follow redirectsIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With