can't download github project with curl command

前端 未结 3 1227
故里飘歌
故里飘歌 2021-01-31 09:04

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

3条回答
  •  伪装坚强ぢ
    2021-01-31 09:44

    You can also download a tarball (*.tar.gz) with:

    curl -LkSs https://api.github.com/repos/ziyaddin/xampp/tarball -o master.tar.gz
    

    or if you use the -O you can omit the filename, but then your saved ".tar.gz" file, is named by default to "tarball", so you have to rename it and add the ".tar.gz" filetype postfix. So use the (lowercase) -o as above. The rest:

    • Ss - use silent mode, but show errors, if any
    • k - use an insecure SSL connection without checking the TLS cert.

提交回复
热议问题