URL url = new URL(urlStr);
HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();
The second line throws java.net.UnknownHostException
.
I was in a internal network in my company, and I hope I can help another one who's also in the same internal network with me to visit the website, and I just want to read content from the URL and give the content to the client side, is there any one help me on this?