Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-24-2007, 06:04 AM
Member
 
Join Date: Jul 2007
Posts: 1
maniaco is on a distinguished road
Java and Webpages
A java programmer brought to my attention a program that impressed me.

What the program did was "test" pages like "index.php" or something. Otherwise, it went to that page (without actually opening it in a browser format, it was invisible). Anyway, it went through random pages. Like say it "tested" index.php, and index.php actually existed, the program would list the page. Say it went to index.html, and that was an invalid page, it wouldn't list it.

Basically, I think that it searched for certain strings then decided if it was valid or whatever.

Im interested in how this can be done. I, myself am not a java programmer. Although, I am interested in learning it.

Is it possible someone can give me an example script similar to this? Im interested in java, but this is all i need now. I dont see a reason to learn just for this. Its for personal use of course.

Also, when I get time, where would I start learning java? And about how long would it take to get an understanding?

I do know html, javaSCRIPT, and php.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-25-2007, 10:20 PM
Member
 
Join Date: Jul 2007
Posts: 55
Seemster is on a distinguished road
This is above someone who doesn't have java experience. You would set up an collection containing the urls to check. Then you'd look through the list, open a URL connection and read the content. If the read bytes were not null, you got yourself a page otherwise the page doesn't exist. This can be written in about 10 lines or so but you would need to have prior Java experience.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +3. The time now is 11:47 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org