This seems to only happen from a bash script but it's not clear why it works from the terminal but not from a bash script.
curl, protocol, https, supported, disabled, libcurl, bash, terminal,