aspose file tools*
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
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: 10246
    
    8

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?