Member
Member
ikewinski   2013-01-17, 07:09
#1

First, why is it that the link on the front page doesn't point to the right place, instead of giving me a 302?

$ wget https://github.com/zenphoto/zenphoto/archive/Zenphoto-1.4.4.tar.gz --2013-01-16 22:58:20-- https://github.com/zenphoto/zenphoto/archive/Zenphoto-1.4.4.tar.gz Resolving github.com... 207.97.227.239 Connecting to github.com|207.97.227.239|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://nodeload.github.com/zenphoto/zenphoto/tar.gz/Zenphoto-1.4.4 [following] --2013-01-16 22:58:21-- https://nodeload.github.com/zenphoto/zenphoto/tar.gz/Zenphoto-1.4.4 Resolving nodeload.github.com... 207.97.227.252 Connecting to nodeload.github.com|207.97.227.252|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 8847516 (8.4M) [application/x-gzip] Saving to: Zenphoto-1.4.4 ...
Second, why does the redirected URL not have a file extension that would allow this to work?

$ file Zenphoto-1.4.4 Zenphoto-1.4.4: gzip compressed data, from Unix $ gunzip Zenphoto-1.4.4 gunzip: Zenphoto-1.4.4: unknown suffix -- ignored $ mv Zenphoto-1.4.4 Zenphoto-1.4.4.gz $ gunzip Zenphoto-1.4.4.gz $ cd Zenphoto-1.4.4 -bash: cd: Zenphoto-1.4.4: Not a directory $ file Zenphoto-1.4.4 Zenphoto-1.4.4: tar archive $ tar -x Zenphoto-1.4.4
And tar just hangs there, forever, probably also balking at the wrong extension but too dumb to tell me. I finally cancelled it. I will try the ZIP version. I don't understand what is going on here. I can't be the only one?

Administrator
Administrator
acrylian   2013-01-17, 11:03
#2

I just tried both links using Safari 6 and Firefox 18. Both do work without any issue. The links are those provided by GitHub and we have no hand in those. You are indeed the first to report any issue with them.

Member
Member
ikewinski   2013-01-17, 17:04
#3

OK Thanks. I will make a practice of downloading locally with a GUI and then uploading to the server. Maybe folks just aren't using wget anymore...

Administrator
Administrator
acrylian   2013-01-17, 17:44
#4

I never did for sure..;-) I assume the GitHub links are no direct download links on purpose.

Member
Member
kagutsuchi   2013-01-17, 19:57
#5

You could try the answers below, seems that there are command options that might work:

wget: http://stackoverflow.com/questions/8377081/github-api-download-zip-or-tarball-link

curl: http://stackoverflow.com/questions/5746325/how-do-i-download-a-tarball-from-github-using-curl

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.