@Override
protected String doInBackground(String... param) {
HttpPost httpPostRequest =new HttpPost(param[2]);
List<NameValuePair> httpParams=new ArrayList<NameValuePair>();
httpParams.add(new BasicNameValuePair("loginName", param[0]));
httpParams.add(new BasicNameValuePair("password", param[1]));
try {
httpPostRequest.setEntity(new UrlEncodedFormEntity(httpParams,HTTP.UTF_8));
HttpResponse httpResponse=new DefaultHttpClient().execute(httpPostRequest);
if(httpResponse.getStatusLine().getStatusCode()==200){
result=EntityUtils.toString(httpResponse.getEntity());
result.replaceAll("\r\n|\n\r|\r|\n", "");
}
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (ClientProtocolException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return result;
}