Yes. There is a very easy way to do it with the HttpURLConnection. The problem is that, typically, a webserver has a default page (index.html) defined and when you open a connection via the HttpURLConnection you get that file instead of the directory list. Also, in order to get the directory list, the webserver must have directory browsing enabled. >> > -----Original Message----- >> > From: Panagiotis Plevrakis [mailto:[EMAIL PROTECTED]] >> > Sent: Thursday, May 23, 2002 3:11 AM >> > To: JDJList >> > Subject: [jdjlist] Get dirs and files under a URL >> > >> > >> > Is there any way to get all directories and/or files under a >> > given URL? For >> > example, given the URL "www.yahoo.com", I would like to >> > create an array of >> > URLs filled with all directories and files of yahoo. >> > >> > Thanks, >> > Panos >> > >> > _________________________________________________________________ >> > Join the world's largest e-mail service with MSN Hotmail. >> > http://www.hotmail.com >> > >> > >> > To change your membership options, refer to: >> > http://www.sys-con.com/java/list.cfm >> > >> >> >---------------------------------------------------------------------------- >> ---------- >> This message and any files transmitted with it are confidential and >> intended >> solely >> for the use of the individual or entity to whom they are addressed. No >> confidentiality >> or privilege is waived or lost by any wrong transmission. >> If you have received this message in error, please immediately destroy it >> and kindly >> notify the sender by reply email. >> You must not, directly or indirectly, use, disclose, distribute, print, >> or >> copy any >> part of this message if you are not the intended recipient. Opinions, >> conclusions and >> other information in this message that do not relate to the official >> business of >> Ydilo Advanced Voice Solutions, S.A. shall be understood as neither given >> nor endorsed by it. >> >---------------------------------------------------------------------------- >> ---------- >> >> To change your membership options, refer to: >> http://www.sys-con.com/java/list.cfm >> >> To change your membership options, refer to: >> http://www.sys-con.com/java/list.cfm > > >===== >= � �o o o o o o o . . . �__________________________ _____=======_||___ > � o � � �_____ � � � � � | �James A. N. Stauffer �| | Stauffer_James | > .][__n_n_|DD[ �====____ �| Spam food: [EMAIL PROTECTED] | | � @yahoo.com � | >>(________|__|_[________]_|________________________|_|________________| >_/oo OOOOO oo` �ooo �ooo �'o�o�o � � � � � � �o�o�o` 'o�o � � � � �o�o` > >__________________________________________________ >Do You Yahoo!? >LAUNCH - Your Yahoo! Music Experience >http://launch.yahoo.com > >To change your membership options, refer to: >http://www.sys-con.com/java/list.cfm >
__________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ To change your membership options, refer to: http://www.sys-con.com/java/list.cfm
