Re: [問題] 請問 HttpURLConnection::getOutputStr …
還沒玩過 android, 不知他有沒有放
HttpsURLConnection 進去.
※ 引述《superbear (bear)》之銘言:
: 玩 android 被迫用 java,實在不太熟...
: 下面的 code 在 21 行 getOutputStream() 會丟一個 IOException,
: 說是 Hostname <www.google.com> was not verified
: 請問這是什麼問題
: 這明明是 google 的示範 code Q_Q
: 1 private static final String GOOGLE_AUTH_URL =
: 2 "https://www.google.com/accounts/ClientLogin";
: 3
: 4 try {
: 5 // open connection
: 6 URL url = new URL(GOOGLE_AUTH_URL);
: 7 HttpURLConnection urlConnection =
: 8 (HttpURLConnection) url.openConnection();
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.128.219.202
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):