wildcarding a URL
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   shane_r
Posted On:   Thursday, October 7, 2004 12:55 AM


I want my Java client to download for e.g. all XML files from a remote server through FTP. In other words, I want the URL to look something like this:
URL url = new URL("ftp://userName:pswd@ftp.site.com/*.xml")


How can I achieve this? In other words, is there some way I can retrieve all the file names that meet that wildcard criteria and then subsequently download those files one at a time.


Can a URL contain wildcard chars? If I have my information correct, the concerned RFC says it cannot contain wildcards.


Thnx

Re: wildcarding a URL

Posted By:   Christopher_Koenigsberg  
Posted On:   Friday, October 8, 2004 12:11 PM

The ftp protocol will let you do an "mget" for multiple files, but I don't think you can put that into an URL. You'll have to talk ftp, cd to the directory, etc.
About | Sitemap | Contact