我有我的android應用程序與受SSL證書保護的服務器通信。以下是該代碼。驗證SSL認證Java/Android
final HttpPost httppost = new HttpPost("https://www.myurl.com");
final List<NameValuePair> postlist = Utils.HttpGetToHttpPost(Arguments);
httppost.setEntity(new UrlEncodedFormEntity(postlist));
final HttpResponse response = httpclient.execute(httppost);
現在我的問題是如何防止MITM攻擊。我如何確保我與myurl.com聊天而不是另一個網址。
好吧很酷!非常感謝。我會更多地關注這一點。 – 2011-04-28 05:06:20