--- Seyyed Mehdi Sheikhalishahi wrote:
> Hi All
> I want to download a file using wget.I click on its
> link and copied
> link address and use in wget command But bad request
> occured.
> What's problem?
> address@hidden 123kharid]# wget
> http://sunsdlc1-3-vhost1.sjc-colo.bbnplanet.com/servlet/EComFileServlet/main_products/SDLC//ESD4/JSCDL/j2sdk/1.4.2/j2sdk-1_4_2-linux-i586-rpm.bin?ActionId=verify&TicketId=ClRX%2BUiKU1E%3D&TicketServerUrl=UMdnxpfbimnVhsPzHcxQH1vcfpnakcdixIDR8grWSV9U3HLSgqDMYN%2BV1osLy1dXQQ%3D%3D&GroupName=5PoE
> [1] 30122
> [2] 30123
> --00:58:57--
> http://sunsdlc1-3-vhost1.sjc-colo.bbnplanet.com/servlet/EComFileServlet/main_products/SDLC/ESD4/JSCDL/j2sdk/1.4.2/j2sdk-1_4_2-linux-i586-rpm.bin?ActionId=verify
> =>
> `j2sdk-1_4_2-linux-i586-rpm.bin?ActionId=verify'
> Connecting to
> sunsdlc1-3-vhost1.sjc-colo.bbnplanet.com:80... [3]
> 30124
> [2] Done
> TicketId=ClRX%2BUiKU1E%3D
> [3]+ Done
>
The problem is in request URL that will not be interpret correctly,
enclose your url in quota ' . and use
-O j2sdk-1_4_2-linux-i586-rpm.bin
option for you output file,
like
wget -O test.bin 'http://example.com?test=test'
regards,
Kaveh
It's nice to be important, but it's more imporatan to be nice Found it somewhere,
Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software