aspose file tools*
The moose likes Java in General and the fly likes Need help in java.net Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Need help in java.net" Watch "Need help in java.net" New topic
Author

Need help in java.net

Vinoth Thirunavukarasu
Ranch Hand

Joined: Dec 18, 2008
Posts: 164

Hi All,
I want to find websites hosted in the given server. when user enter his/her server/website name i should list all the website hosted in that domain. How can I do that any help


Java Best Practices
Linux Best Practices
Amortization Calculator

Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18847
    
  40

I am not sure if you can. A webserver can sit on any port. The pages can have any name. And the pages can behave differently with different query strings.

The best you can do is probably, given a top page on the host, to crawl through the pages to find all the pages linked to that one. That won't find any unrelated pages though.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Vinoth Thirunavukarasu
Ranch Hand

Joined: Dec 18, 2008
Posts: 164

HI thanks for your reply.
 
 
subject: Need help in java.net