fetch command breaks because of reliance on user-agent (BB-11638)
BitBucket doesn't seem to like the FreeBSD
fetch command authenticating and downloading files from a private repo. This makes it difficult to download a post-install script on a fresh installation (where
wget is not included by default).
However, changing the
fetch user-agent string from "fetch libfetch/2.0" to "Wget/1.16 (freebsd10.0)" does allow authentication. So perhaps relying on user-agent strings is not the way to go.
The following does not work:
~# fetch --no-verify-peer "https://myname:email@example.com/me/server/raw/abcde...xyz/post-install.sh"
However, the following does work:
~# fetch --no-verify-peer --user-agent "Wget/1.16 (freebsd10.0)" "https://myname:firstname.lastname@example.org/me/server/raw/abcde...xyz/post-install.sh"