

O – : downloads the HTML data to the standard output. In other words it contains the data you would enter in the login form. –post-data : is the POST payload of the request. –save-cookies : Saves the cookie to a file called rapidshare under the ~/.cookies directory (let’s assume that you store your cookies there) post-data "login=USERNAME&password=PASSWORD" \ In order to save your cookie using wget, run the following: In the following examples, the RapidShare username is shown as USERNAME and the password as PASSWORD. The login form requires two fields: login and password. Saving your RapidShare cookie is a procedure that needs to be done once. Save your RapidShare Premium Account Cookie IMPORTANT: Please note that in order to use these command-line utilities or any other download managers with RapidShare, you will have to check the Direct Downloads option in your account’s options page. The difference now is that you do it on the command line.īelow you will find examples about how to perform these actions using both wget and curl. This is pretty much the same you would do with a graphical download manager. Having done this, then the only required action in order download from RapidShare is to load the cookie, so that wget or curl can use it to authenticate you on the RapidShare server. Both wget and curl support saving and loading cookies, so before using them to download any files, you should save such a cookie. This means that every time you log into the service, a cookie containing information which identifies you as a registered user is stored in your browser’s cookie cache. Rapidshare uses cookie-based authentication. Fortunately, registered users are permitted to use download managers and, as you will read in the following article, the Linux command line downloaders work flawlessly with a Premier account. Since “waiting” is not a game I like and since I intended to use either wget or curl to download the files, I decided to sign up for a RapidShare Premium account and then figure out how to use the aforementioned tools. Although RapidShare (and all the other 1-click file-hosting services) is very convenient, it has some strict rules for free accounts, for example a guest has to wait for 120 seconds per 1 MB of downloaded data and – to make it worse – no download managers are allowed. The last days I needed to download a bunch of medical videos which have been uploaded to RapidShare by many other people.
