private static String httpPostData(String uri, int requestTimeOut, String postData) {
        String retStr = "failure";
        int tmout = 5;
        if (requestTimeOut > 0) {
            tmout = requestTimeOut;
        }
        try {
            HttpParams httpParams = new BasicHttpParams();
            httpParams.setParameter("charset", "UTF-8");
            HttpConnectionParams.setConnectionTimeout(httpParams, tmout * 1000); // 毫秒
            HttpConnectionParams.setSoTimeout(httpParams, tmout * 1000);
            HttpClient httpClient = new DefaultHttpClient(httpParams);

            HttpPost httpPost = new HttpPost(uri);
            httpPost.setEntity(new StringEntity(postData.toString(), "UTF-8"));
            HttpResponse response;
            response = httpClient.execute(httpPost);
            // 检验状态码，如果成功接收数据
            int code = response.getStatusLine().getStatusCode();
            if (code == 200) {
                retStr = EntityUtils.toString(response.getEntity(), "UTF-8");
            }
        } catch (ClientProtocolException e) {
        } catch (IOException e) {
        } catch (Exception e) {
        }
        return retStr;
    }