public static String conSvr() {
(URL)null;
(InputStream)null;
StringBuilder stringBuilder = new StringBuilder();
StringBuilder stringBuilder2 = new StringBuilder();
stringBuilder.append("ben123.a3w.cn");
try {
StringBuffer stringBuffer = new StringBuffer();
StringBuffer stringBuffer2 = new StringBuffer();
StringBuffer stringBuffer3 = new StringBuffer();
URL uRL = new URL(stringBuffer.append(stringBuffer2.append(stringBuffer3.append("http://").append(stringBuilder.toString()).toString()).append("/").toString()).append(stringBuilder2.toString()).toString());
HttpURLConnection httpURLConnection = (HttpURLConnection)uRL.openConnection();
httpURLConnection.addRequestProperty("Host", stringBuilder.toString());
if (httpURLConnection.getResponseCode() != 200) return null;
InputStream inputStream = httpURLConnection.getInputStream();
InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
BufferedReader bufferedReader = new BufferedReader((Reader)inputStreamReader);
StringBuilder stringBuilder3 = new StringBuilder();
(String)null;
do {
String string2;
if ((string2 = bufferedReader.readLine()) == null) {
return stringBuilder3.toString();
}
StringBuffer stringBuffer4 = new StringBuffer();
stringBuilder3.append(stringBuffer4.append(string2).append("\n").toString());
} while (true);
}
catch (IOException var9_13) {
return null;
}
}
這是反編譯的代碼,所以變量名丟失了。這段代碼視圖訪問一個網站,返回對應的html