This is a very basic post, but I consider it for myself rather for public consumption. I needed to download the Java RPM from the Oracle website from command line, as I’m connected to my systems from a low bandwidth site.
I needed to find the cookies that Oracle website uses for “accepting” Oracle license to use properly wget from command line. Here it is:

And below the commands to set right alternatives in CentOS/RHEL: