Download Jave SE 6 SDK from command line

When you try to download the Java 6 SE JDK from oracle.com you have to check "Accept" before you can download. This make downloading form the command line with wget a bit tricky.

This worked for me:

wget --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk6-downloads-1637591.html;" http://download.oracle.com/otn-pub/java/jdk/6u33-b03/jdk-6u33-linux-x64.bin

Comments

Popular posts from this blog

Authentication for RESTful APIs

Security From Happiness

How to build a simple RESTful API with Flask