How do i check if a webpage exists with java?
问题 So here's the deal. I don't have it yet, but starting Friday, I'm in the process of making a forum. What I'd like to do is check to see if a user is registered on the forum. I'm not sure exactly, but lets say the users are stored in URL/users/NAME.WHATEVER (jsp?) how, in java, do i make a URL connection, and check to see if URL/users/Robert.WHATEVER == null? 回答1: Even you could have googled your answer: One simple way is to use the Apache Http Components HttpClient httpclient = new