When working with EDB support regarding any issues related to problems with downloading files, (especially when trying to download from corporate networks with HTTP(S) proxies available), please perform the following:
- Replace your token:
export edb_token=<YourEDBToken>
- If http or https proxies are in use, replace this also:
export http_proxy_connection_string=<http://your.http.proxy.com.local:8080>
export https_proxy_connection_string=<http://your.https.proxy.com.local:8080>
- Run the following command as root, and upload
download_output.txt
to the ticket
{
curl -V
openssl version
export bak_http_proxy=$http_proxy
export bak_https_proxy=$https_proxy
unset http_proxy
unset https_proxy
echo -e "\n1] no proxy google\n"
curl -svo /dev/null https://www.google.com
echo -e "\n2] no proxy edb\n"
curl -svo /dev/null https://downloads.enterprisedb.com/
export http_proxy=$bak_http_proxy
export https_proxy=$bak_https_proxy
echo $http_proxy
echo $https_proxy
echo -e "\n3] proxy google\n"
curl -svo /dev/null https://www.google.com/
echo -e "\n4] proxy edb\n"
curl -svo /dev/null https://downloads.enterprisedb.com/
curl -sv "https://downloads.enterprisedb.com/${edb_token}/enterprise/raw/files/enterprise.html"
unset http_proxy
unset https_proxy
echo -e "\n5] http --proxy edb\n"
curl -v --proxy "${http_proxy_connection_string}" "https://downloads.enterprisedb.com/${edb_token}/enterprise/raw/files/enterprise.html"
echo -e "\n6] https --proxy edb\n"
curl -v --proxy "${https_proxy_connection_string}" "https://downloads.enterprisedb.com/${edb_token}/enterprise/raw/files/enterprise.html"
ip route ls default
date
} > download_output.txt 2>&1