3 ms·
I'm not sure bringing in JSoup into a basic tutorial is useful, the person reading your tutorial might not want to be doing HTML parsing at all! Plus, it's inc
by peeters 14y ago
I'm not sure bringing in JSoup into a basic tutorial is useful, the person reading your tutorial might not want to be doing HTML parsing at all!
Plus, it's incredibly easy with the stock Java API:
HttpURLConnection connection = (HttpURLConnection)
new URL("http://google.com").openConnection();
int statusCode = connection.getResponseCode();
String statusMessage = connection.getResponseMessage();