SyntaxFix
Write A Post
Hire A Developer
Questions
You could also use HttpURLConnection, which allows you to set the request method (to HEAD for example). Here's an example that shows how to send a request, read the response, and disconnect.