I'm trying to write a small java app that will take a url as a parameter and return the status code for that web page.
i.e. GetStatusCode https://server1.mycompany.com/myapp/login_page
returns: 200 OK
or something like that
Can anybody show me a small example using the URL classes please? is there a way to use certificates??