I need to download file from a url using PERL script. Problem is url does not end with a file name. URL is like "www.xyz.com/list/dir/" It does not contain filename. As soon as i type this type of url in browser, popup message gets displayed that Whether you want to open the file or save it. And the name of the file is in that dialog.