私の会社はasp.netベースのサービスを使用しています。このサービスは、特定のhttpget要求がある場合に「処理を実行」します。URLは次のようになります。
https://www.server.tld/service/dostuff.ashx?user=user&pass=pass&command=some+command
URLを呼び出すメソッドをAndroidに実装しようとしています。このコマンドは、取得する必要がある可能性のあるxml応答も返します。
現在、別のstackoverflowの質問のコードを使用していますが、機能させることができないようです。
HttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = new HttpGet(httpGetUrl);
HttpResponse response;
try {
response = httpclient.execute(httpget);
HttpEntity entity = response.getEntity();
if (entity != null) {
InputStream instream = entity.getContent();
String result = convertStreamToString(instream);
instream.close();
}
} catch (Exception e) {}
// convertStreamToString method
私の質問は、https接続、またはaspとの対話に特別な要件がありますか?たぶん私はこれのためにもっと機能的なウェブクライアントを使うべきですか?