Androidアプリでhttpgetリクエストをしたいのですが、
URL = https://www.facebook.com/dialog/oauth?client_id=<number>&redirect_uri=<SOME_URL>&scope=email
上記の URL はブラウザで正常に動作しています。サーバー側では適切な結果が得られますが、アプリケーションから http 呼び出しを行うと動作せず、200 応答が返されますが、結果が得られません。
コードスニペット:
HttpParams httpParams = new BasicHttpParams();
httpParams.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1);
HttpConnectionParams.setConnectionTimeout(httpParams,
CONN_TIMEOUT);
HttpGet httpGet = new HttpGet(URL);
Log.d(TAG,"URL :"+ httpGet.getURI().toURL().toString());
DefaultHttpClient client = new DefaultHttpClient(httpParams);
HttpResponse httpResponse = client.execute(httpGet);
//Log.d(TAG,"httpResponse :" +EntityUtils.toString(httpResponse.getEntity()));
res = httpResponse.getStatusLine().getStatusCode();
Log.d(TAG, "Response : " + res);