Today I ran into an add-on for FireFox which can create a wget command from a download file dialog box. First thing that came in mind was; Will this work for Metalink / My Oracle Support? Yes is does!
The add-on is called ‘cliget’ and can be downloaded here: cliget add-on for FireFox.
Get wget command from cliget download dialog
- Go to the Oracle support site: support.oracle.com;
- Search for the patch or donwload you need and click on the file to download it;
- In the download dialog an extra section is added with the wget command and a copy button:
Paste wget command in Linux
Paste this wget command in a Linux command line and hit enter:
[oracle::/u01/download]$ wget --header="Host: aru-llnw-dl.oracle.com" --header="User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0" --header="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" --header="Accept-Language: en" --header="Accept-Encoding: gzip, deflate" --header="Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" --header="DNT: 1" --header="Connection: keep-alive" --header="Cookie: ORA_UCM_SRVC=3*ORA~1~0~//~null~*OTN~1~0~//~null~ (...) ZD0yNzMxOTU5&e=1312565455&h=a6261356a8937ecf2ecdad0f6ae6e629 Resolving aru-llnw-dl.oracle.com... 87.248.203.253, 87.248.203.254 Connecting to aru-llnw-dl.oracle.com|87.248.203.253|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 226118567 (216M) [application/zip] Saving to: 'p12398567_112022_SOLARIS64.zip' 100%[=========================================>] 226,118,567 4.72M/s in 56s 2011-08-05 19:21:58 (3.87 MB/s) - 'p12398567_112022_SOLARIS64.zip' saved [226118567/226118567]
The link must be used ‘immediately’, when I tried to use it again 60 minutes later, the result was:
Connecting to aru-llnw-dl.oracle.com|87.248.203.254|:80... connected. HTTP request sent, awaiting response... 400 Bad Request 2011-08-05 19:20:15 ERROR 400: Bad Request.
Google Chrome
I have found something similar for Google Chrome, but I involves some steps in exporting a cookie.txt file: wget cookie.txt export add-on for Google Chrome.
Metalink Flash wget
The Flash site of My Oracle Support also lets you create wget commands, but this will be a script which must be edited with your password before it can be used. It includes logging and creating temporary cookie files, but the advantage is it will be usable for 48 hours.
Happy downloading!
I’m the developer of this extension and I’d like to thank you for writing about it :)
I wanted to write a similar extension for Google Chrome but Chrome’s API is not as rich as Firefox’s (but I would argue much easier to use). So after a quick look I couldn’t find an easy way to do it. I might give it another try later ;)
Pingback: Downloads. GUI/command line, wget. Specify where to save. - Page 2