Home > Blogroll, browser, installation > wget from otn

wget from otn

September 15th, 2006 Leave a comment Go to comments

wget is a well-known command line utility for downloading files from the internet/intranet.

I like to use the limit-rate, so that my coworkers still can surf. Until today, I never succeeded to download from otn, because wgetting software required me to log in and accept the export restriction

How to automate login is actually extremly easy :

1) open your mozilla browser, go to the page, login, accept the export, download the file, click properties, copy paste the “Saving From”, Cancel
2) find out where is located your cookies.txt file


$ find $HOME -name "cookies.txt"
/home/lsc/.mozilla/default/86iy2n5j.slt/cookies.txt

3) wget

$ wget –load-cookies /home/lsc/.mozilla/default/86iy2n5j.slt/cookies.txt –limit-rate 250k http://download-uk.oracle.com/otn/compaq/oracle10g/10202/10202_database_HP-Tru64.zip
100%[++++++++++++++++++++++++++++======>] 1,081,211,566 254.98K/s ETA 00:00

16:48:05 (249.99 KB/s) – `10202_database_HP-Tru64.zip.1′ saved [1,081,211,566/1,081,211,566]

It works!

Tags:
  1. Brian Duff
    September 17th, 2006 at 04:58 | #1

    Very useful… thanks :)

  2. September 18th, 2006 at 16:13 | #2

    I had the same need of using wget to download the oracle xe installer,I posted a
    different approach
    , taking the variables manually from the browser headers and using those variables in the wget command… but your way is far more simple. ;)

  3. September 18th, 2006 at 16:19 | #3

    Thanks for the link. hopefully, I do not have to limit the rate to 3K here :-)

    how did you get that output about what have been posted ?

  4. September 20th, 2006 at 18:15 | #4

    I use the live HTTP headers extension for firefox, which lets you watch the request/response messages between browser and server.

    The 3k limit rate was just for demonstration purposes :P

  5. Jeannick
    October 12th, 2006 at 01:48 | #5

    très bien vu !! Merci pour cette belle astuce bien pratique!

  6. wget otn
    September 10th, 2007 at 10:58 | #6
  1. January 9th, 2009 at 09:45 | #1
*