在开发新浪微博的时候,遇到了“The target server failed to respond”这个错误。 通过遍地搜索,在GoogleIssue
Every time my application is started it takes upwards to a minute for HTTPS Post(via http proxy) to return results ( See code below). Once the first Post returns results, all following requests seem to return at a reasonable speed. I reuse the androidHttpClient, and after about three minute passed, the next HTTPS Post request to server hangs long again. The problem is not on the server side since HTTPS Post to the server(via http proxy) in another platform(window mobile/s60/iphone) return results not hanging so long. System: Running on device vodafon, HTC Magic 2.1-update1. Sample code that causes the problem: static AndroidHttpClient androidHttpClient = null; public String sendRequest(String strReqData, String strUrl, Context context) { String strResponse = null; ArrayList<BasicNameValuePair> pairs = new ArrayList<BasicNameValuePair>(); pairs.add(new BasicNameValuePair(
Android4.0之前HttpClient的问题The target server failed to respond
最新推荐文章于 2024-04-28 13:09:07 发布