Forgotten how I did this last time. Tried the following 2 methods that I thought had worked for me in the past:
$ wget \ http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-i586.rpm
$ wget --no-cookies \ --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" \ "yourversion.rpm" \ -O /opt/jdk-7u51-linux-i586.rpm --no-check-certificate
But neither worked. For the time being I'll just download it the old fashion way but I'd like to be able to download it using
wget as well.