[Bug 251216] fetch(1) not able to fetch file

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Nov 17 16:50:48 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251216

--- Comment #3 from vermaden at interia.pl ---
Just tried again, same results:

% fetch https://github.com/amir/sctd/archive/0.2.0.tar.gz 
fetch: https://github.com/amir/sctd/archive/0.2.0.tar.gz: Moved Temporarily

% uname -a
FreeBSD w520.local 12.2-RELEASE FreeBSD 12.2-RELEASE r366954 GENERIC  amd64

% freebsd-version -u
12.2-RELEASE

% freebsd-version -k
12.2-RELEASE

% host github.com
github.com has address 140.82.121.3
github.com mail is handled by 1 aspmx.l.google.com.
github.com mail is handled by 10 alt3.aspmx.l.google.com.
github.com mail is handled by 10 alt4.aspmx.l.google.com.
github.com mail is handled by 5 alt1.aspmx.l.google.com.
github.com mail is handled by 5 alt2.aspmx.l.google.com.

% dog !$
dog github.com
A github.com. 54s   140.82.121.3

Its just that fetch(1) has a problem with HTTP 302 redirection.

When you see the wget(1) output then after redirection it is downloaded from
https://codeload.github.com/amir/sctd/tar.gz/0.2.0 location and this one works
even with fetch(1). 

% fetch https://codeload.github.com/amir/sctd/tar.gz/0.2.0
fetch: https://codeload.github.com/amir/sctd/tar.gz/0.2.0: size of remote file
is not known
0.2.0                                                 8629  B   10 MBps    00s

% ls -l 0.2.0 0.2.0.tar.gz
-rw-r--r-- 1 vermaden vermaden 8629 2020-11-17 17:49 0.2.0
-rw-r--r-- 1 vermaden vermaden 8629 2020-11-17 14:31 0.2.0.tar.gz

% file 0.2.0 0.2.0.tar.gz
0.2.0:        gzip compressed data, from Unix, original size modulo 2^32 40960
0.2.0.tar.gz: gzip compressed data, from Unix, original size modulo 2^32 40960

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list