Thursday, October 1, 2009

Downloading long url using wget

In some situations we need download required files using long urls with wget

Use following wget syntax for this purpose :


wget -O[output file] '[long url]'

Example : Downloading Java bin file


wget -Ojava_ee_sdk-5_07-jdk-6u16-linux.bin 'http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/java_ee_sdk-5_07-jdk-6u16-linux.bin?BundledLineItemUUID=S7lIBe.pkmQAAAEkafkMmA.c&OrderID=NEdIBe.p_GMAAAEkV_kMmA.c&ProductID=AcVIBe.nU6oAAAEjhhpuoDTb&FileName=/java_ee_sdk-5_07-jdk-6u16-linux.bin'

No comments: