wood burning stoves 2.0*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Need help in java.net" Watch "Need help in java.net" New topic

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

Joined: Sep 28, 2004
Posts: 18552

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.


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.
It is sorta covered in the JavaRanch Style Guide.
subject: Need help in java.net
Similar Threads
Apache Web Server mapping of URL to index page of the Application
Socket Connection Client/Server..HELP!
Java Interview Questions
Count the number of times a webpage has been visited
Web Application (Folder creation)