This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JSP and the fly likes how to check whether a url is working or not? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to check whether a url is working or not?" Watch "how to check whether a url is working or not?" New topic
Author

how to check whether a url is working or not?

Faiz Ahmed
Greenhorn

Joined: Sep 27, 2013
Posts: 1

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9993
    
    7

Welcome to the Ranch.

How is this question JSP related? (You have posted it in the JSP forum)

With pure java, you would
1) Open a HTTPUrlConnection to the desired URL
2) Set the request method to GET
3) Connect
4) Check the response code.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to check whether a url is working or not?