I'm installing  hosts that run behind apt-cacher-ng and I'm trying to install a package : oracle-java7-installer<div><br></div><div><br></div><div>....</div><div><div>Downloading Oracle Java 7...</div><div>--2012-10-21 16:57:28--  <a href="http://download.oracle.com/otn-pub/java/jdk/7u9-b05/jdk-7u9-linux-x64.tar.gz">http://download.oracle.com/otn-pub/java/jdk/7u9-b05/jdk-7u9-linux-x64.tar.gz</a></div>
<div>Resolving xxxxx (xxxxxx)... x.x.x.x</div><div>Connecting to xxxxx(xxxxx)|x.x.x.x|:3142... connected.</div><div>Proxy request sent, awaiting response... 302 Moved Temporarily</div><div>Location: <a href="https://edelivery.oracle.com/otn-pub/java/jdk/7u9-b05/jdk-7u9-linux-x64.tar.gz">https://edelivery.oracle.com/otn-pub/java/jdk/7u9-b05/jdk-7u9-linux-x64.tar.gz</a> [following]</div>
<div>--2012-10-21 16:57:28--  <a href="https://edelivery.oracle.com/otn-pub/java/jdk/7u9-b05/jdk-7u9-linux-x64.tar.gz">https://edelivery.oracle.com/otn-pub/java/jdk/7u9-b05/jdk-7u9-linux-x64.tar.gz</a></div><div>Resolving <a href="http://edelivery.oracle.com">edelivery.oracle.com</a> (<a href="http://edelivery.oracle.com">edelivery.oracle.com</a>)... 173.222.186.174</div>
<div>Connecting to <a href="http://edelivery.oracle.com">edelivery.oracle.com</a> (<a href="http://edelivery.oracle.com">edelivery.oracle.com</a>)|173.222.186.174|:443... connected.</div><div>HTTP request sent, awaiting response... 302 Moved Temporarily</div>
<div>Location: <a href="http://download.oracle.com/otn-pub/java/jdk/7u9-b05/jdk-7u9-linux-x64.tar.gz?AuthParam=1350872255_85e207a5d55476ad697927f6a73c2412">http://download.oracle.com/otn-pub/java/jdk/7u9-b05/jdk-7u9-linux-x64.tar.gz?AuthParam=1350872255_85e207a5d55476ad697927f6a73c2412</a> [following]</div>
<div>--2012-10-21 16:57:28--  <a href="http://download.oracle.com/otn-pub/java/jdk/7u9-b05/jdk-7u9-linux-x64.tar.gz?AuthParam=1350872255_85e207a5d55476ad697927f6a73c2412">http://download.oracle.com/otn-pub/java/jdk/7u9-b05/jdk-7u9-linux-x64.tar.gz?AuthParam=1350872255_85e207a5d55476ad697927f6a73c2412</a></div>
<div>Connecting to xxxxx|xxxxx|:3142... connected.</div><div>Proxy request sent, awaiting response... 403 Forbidden file type or location</div><div>2012-10-21 16:57:28 ERROR 403: Forbidden file type or location.</div></div>
<div>....</div><div><br></div><div><br></div><div>I can wget from another host within the time limit that the token is good for the following url</div><div><a href="http://download.oracle.com/otn-pub/java/jdk/7u9-b05/jdk-7u9-linux-x64.tar.gz?AuthParam=1350872255_85e207a5d55476ad697927f6a73c2412">http://download.oracle.com/otn-pub/java/jdk/7u9-b05/jdk-7u9-linux-x64.tar.gz?AuthParam=1350872255_85e207a5d55476ad697927f6a73c2412</a></div>
<div><br></div><div>But behind apt-cacher-ng it doesn't work, and modifying apt config file to allow direct connection for this url is not an option for me.</div><div><br></div><div>This is the line I have in the apt-cacher-ng log :</div>
<div><div>1350871854|O|308|xxxxxx|<a href="http://download.oracle.com/otn-pub/java/jdk/7u9-b05/jdk-7u9-linux-x64.tar.gz">download.oracle.com/otn-pub/java/jdk/7u9-b05/jdk-7u9-linux-x64.tar.gz</a></div></div><div><br></div>
<div><br></div><div><div>I suspect that maybe apt-cacher-ng removes the http request parameters, is it the case?</div></div><div><br></div><div>Is there a solution to this problem?</div><div><br></div><div>Thanks</div><div>
<br></div><div>-tony</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>