登录程序验证
/**
* Post登录
*
* @param username
* @param password
* @return
*/
public static String loginOfPost(String username, String password) {
try {
URL url = new URL("http://10.0.2.2/servlet/LoginServlet");
conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
conn.setConnectTimeout(10000);
conn.setReadTimeout(5000);