From 7799591c7e0407872b2162df165f295247a42279 Mon Sep 17 00:00:00 2001 From: David Fraser Date: Tue, 18 Mar 2014 13:23:38 +0200 Subject: [PATCH 1/2] Supply fresh cookies --- oab-java.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oab-java.sh b/oab-java.sh index 16c3487..eaf586a 100755 --- a/oab-java.sh +++ b/oab-java.sh @@ -504,7 +504,8 @@ do fi DOWNLOAD_SIZE=`grep ${JAVA_BIN} /tmp/oab-download.html | cut -d'{' -f2 | cut -d',' -f2 | cut -d':' -f2 | sed 's/"//g'` # Cookies required for download - COOKIES="oraclelicensejdk-${JAVA_VER}u${JAVA_UPD}-oth-JPR=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com" + timestamp=$((`date +%s` + 180000)) + COOKIES="oraclelicense=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com;s_cc=true;s_sq=%5B%5BB%5D%5D;s_nr=$timestamp" ncecho " [x] Downloading ${JAVA_BIN} : ${DOWNLOAD_SIZE} " wget --no-check-certificate --header="Cookie: ${COOKIES}" -c "${DOWNLOAD_URL}" -O ${WORK_PATH}/pkg/${JAVA_BIN} >> "$log" 2>&1 & From a1e29d456ec08fb9f3cf2c821c0f80570638b4c8 Mon Sep 17 00:00:00 2001 From: David Fraser Date: Fri, 2 May 2014 13:03:08 +0200 Subject: [PATCH 2/2] Supply fresh cookies for policy download too... --- oab-java.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oab-java.sh b/oab-java.sh index eaf586a..8b96c84 100755 --- a/oab-java.sh +++ b/oab-java.sh @@ -536,7 +536,9 @@ if [ "${JAVA_UPSTREAM}" == "sun-java6" ]; then else JCE_POLICY="UnlimitedJCEPolicyJDK7.zip" DOWNLOAD_URL=`grep ${JCE_POLICY} /tmp/oab-download-jce.html | cut -d'{' -f2 | cut -d',' -f3 | cut -d'"' -f4` - COOKIES="oraclelicensejce-7-oth-JPR=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com" + # COOKIES="oraclelicensejce-7-oth-JPR=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com" + timestamp=$((`date +%s` + 180000)) + COOKIES="oraclelicense=accept-securebackup-cookie;gpw_e24=http://edelivery.oracle.com;s_cc=true;s_sq=%5B%5BB%5D%5D;s_nr=$timestamp" fi DOWNLOAD_SIZE=`grep ${JCE_POLICY} /tmp/oab-download-jce.html | cut -d'{' -f2 | cut -d',' -f2 | cut -d'"' -f4`