I want to get a file uploaded to my Linux system whose url is
http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jre-7u51-linux-i586.tar.gz
and I issue the following command as:
wget -U 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:16.0) Gecko/20100101 Firefox/16.0' http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jre-7u51-linux-i586.tar.gz
whereas the user agent is passed to -U, which I copied from my browser user agent. But it only downloads a file of 5.3 KB, while the whole file is 46.09 MB, and the downloaded file is damaged.
How can I solve this problem?
Looking at the output, you will realize that the oracle rejected the request containing the following message:
To download products from the Oracle Technology Network, you must agree to the OTN license terms.Make sure that...Your browser has cookies and JavaScript." " , .30 .
To download products from the Oracle Technology Network, you must agree to the OTN license terms.
Make sure that...
, GET POST / .
""; URL- , " Oracle Technology Network OTN". , - 5307 .
, . cookie , cookie. wget cookie.
wget
wget cookie, , , . wget script, , ; , .